This paper deals with a simulation algorithm of a system reliability using the classification of its components according to their importance. By changing the structure and resorting to the above algorithm, various versions of the system may be simulated. Finally, an example is given on which the algorithm was tested.