note 102704 rejected from function.array-rand by danbrown
[email protected] Tue, 1 Mar 2011 07:58:43 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: anilesh dot sharma at gmail dot com ---- Can anyone please suggest me a solution for the following? I wish to develop a method which will randomly distribute 'n' objects to 'm' containers. To give a better feel, I want to distribute m coins among n(which is <m) people so that each gets int(m/n) coins. What is the fastest method which can be employed?