**Note:** this module has been deprecated. See `ceylon.random` for its replacement.
Ceylon Random provides:
- a pseudorandom number generator ([[LCGRandom]]),
- 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 [[LCGRandom]]:
// Create a random number generator
value random ...
Compile Dependencies (1)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
Apache
| ceylon
»
collection Library providing general-purpose mutable lists, sets, and | 1.1.0 | 1.3.1 |
