URGENT!!How to make a random without repetition?

askmewhy25's Avatar, Join Date: Jan 2010
Go4Expert Member
URGENT!!How to make a random without repetition? using C
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
How would you do it with a dice?
Let's try. 1 4 2 1 -oops, had a 1 already. Now what? And how did we know?
0
davidk's Avatar, Join Date: Mar 2010
Go4Expert Member
Do you need to generate random numbers? Consider some C functions like rand()