Generate non-repeating, no sequential numbers
Posted
by Sam Jarman
on Stack Overflow
See other posts from Stack Overflow
or by Sam Jarman
Published on 2010-04-10T08:42:40Z
Indexed on
2010/04/10
8:53 UTC
Read the original article
Hit count: 174
how does one use code to do this:
produce 15 random numbers that are not in any order, and that only occur once eg.
1 4, 2, 5, 3, 6, 8, 7, 9, 10, 13, 12, 15, 14, 11
rand() or arc4rand() can repeat some, which is not what im after.
Thanks
© Stack Overflow or respective owner