On sön, 03 feb 2002, Chris Payne wrote: > Hi there everyone, > > I need to generate a random number between 1 and 15 for insertion into a > DB, I can easily do the DB side of it but what is the best method for > quickly generating a random number between 1 and 15 (including 1 and 15 > in the equation)?
srand((double)microtime()*1000000); $randomnumber = rand(1,15); Something like this? -- patrik_wallstrom->foodfight->[EMAIL PROTECTED]>+46-709580442 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php