Randomizing 3 different numbers.

From: Date: Mon, 27 Oct 2003 12:26:06 +0000
Subject: Randomizing 3 different numbers.
Groups: php.general 
Request: Send a blank email to php-general+get-167704@lists.php.net to get a copy of this message
I am tring to output 3 different random numbers between 1 and 20 into 3 different strings. Using Rand() for each string isn't sufficient as I may get the same number repeated for one of the other strings- eg 1,1,3 or 5,3,3 . It's important that I get three different numbers outputted into for example $one, $two, $three. Can anyone help? Ian ===== --------------------------------- Ian A. Gray Manchester, UK Telephone: +44 (0) 161 224 1635 - Fax: +44 (0) 870 135 0061 - Mobile: +44 (0) 7900 996 328 Business Enquiries: +44(0)870 770 8832 E-mail: ian.gray@dunelm.org.ukWebsites: www.baritone.uk.com (Performance) www.vocalstudio.co.uk (Vocal Tuition)www.selectperformers.com (Web design for professional musicians) ---------------------------------

« previous php.general (#167704) next »