Аңдатпа
An algorithm for simulating the number and order of cars in a train arriving at an access track. The paper presents an algorithm for randomly generating the characteristics of trains arriving at the access road. Trains are characterized by the following parameters: the number of uncoupling cars arriving at the internal stations of the access track, the number of cars in each uncoupling, the order of the uncoupling in the train. The number of detachments is formed randomly in the range from one to the value of the total number of internal stations of the access road. The number of cars in each uncoupling is formed randomly from zero to one-third of the size of the train composition. Moreover, the proportionality of the volumes of car traffic going to each station is observed. The number of options for the location of detachments (permutations) is determined by the factorial of the number of stations. The number of the permutation variant is randomly selected.