Ceylon Random provides:
- a pseudorandom number generator ([[DefaultRandom]]),
- toplevel utility functions to shuffle streams or arrays ([[randomize]]
and [[randomizeInPlace]]), and
- an easy to implement interface for use by third party random number generators
([[Random]]).
To generate random numbers, create and use an instance of [[DefaultRandom]]:
// Create a random number generator
value random = DefaultRandom();
// Print a pseudorandom Float in the range 0.0 to ...
Version1.2.2compared with
Version Details
| 1.2.1 | 1.2.2 | |
|---|---|---|
| Release date | Feb 13, 2021 | Feb 13, 2021 |
| Licenses | Apache | Apache |
| Vulnerabilities | None | None |