hi guys.
i can use mt_rand() to generate a random number, but if i wanted to generate say, 5 random numbers between 1 and 20, how would i do this?
no 2 numbers can be the same so i cant just use mt_rand() 5 times.
i have searched with google and searched php.net but i cant see any way of doing this.
any help is greatly appreciated.
thanks
oops. I can do this in mysql with select_rand(number) from table limit 5; but i would prefer a non sql way if possible