After a few tests I found out, that this is not I am looking for. Is there a way to use random number from some set of numbers (the same way as random unit from N unit group or random player from N player group, etc.)? Then I will easily remove this number from the set, so it would only have the numbers, which have not been use yet.