04.03.2015, 16:26
Y_iterate (foreach) has a function for this.
Quote:
Originally Posted by foreach - 0.3 compatible - updated 19/12/12
Iter_Random(name)
Efficiently returns a random present value from the named iterator. Useful for selecting a random player. Код:
new Iterator:Some<10>; Iter_Add(Some, 5); Iter_Add(Some, 9); printf("%d", Iter_Random(Some)); |