Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
UniqueRandom Class Reference
Random number generator that returns a distinct number from the [0,n) interval each time. More...
#include <random.h>
| Public Member Functions | |
| UniqueRandom (int n) | |
| Constructor. | |
| void | init (int n) | 
| Initializes the number generator. | |
| int | next () | 
| Return a distinct random integer in greater or equal to 0 and less than 'n' on each call. | |
Detailed Description
Random number generator that returns a distinct number from the [0,n) interval each time.
Definition at line 81 of file random.h.
Constructor & Destructor Documentation
| UniqueRandom | ( | int | n ) | 
Member Function Documentation
| void init | ( | int | n ) | 
Generated on Tue Jul 12 2022 16:42:45 by
 1.7.2
 1.7.2