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 ...
Newer Version Available
Note: this artifact is located at Ceylon repository (https://modules.ceylon-lang.org/maven/1/)
Licenses
| License | URL |
|---|---|
| Apache Software License |
Developers
| Name | Dev Id | Roles | Organization | |
|---|---|---|---|---|
| John Vasileff | |