note 16740 rejected from function.rand by jimw
| From: | jimw@php.net | Date: | Sun, 11 Nov 2001 21:00:47 +0000 |
| Subject: | note 16740 rejected from function.rand by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20737@lists.php.net to get a copy of this message | ||
How do i randomly allocate a set of value into a variable without repeating it?
i.e allocate 1, 2, 3, 4, 5 into an array of 5 elements without repeating each value.
e.g
var[0] = 4
var[1] = 1
var[2] = 3
var[3] = 5
var[4] = 2
who can help?