This section attempts to explain some of the concepts used in this library.
- Intro: Hello Random example
- What is random data and what is randomness anyway?
- What kind of random generators are there?
- What random number generators does Rand provide?
- Turning random data into useful values
- Distributions: more control over random values
- Error handling
Importing items (prelude)
The most convenient way to import items from Rand is to use the
This includes the most important parts of Rand, but only those unlikely to
cause name conflicts.
Note that Rand 0.5 has significantly changed the module organization and contents relative to previous versions. Where possible old names have been kept (but are hidden in the documentation), however these will be removed in the future. We therefore recommend migrating to use the prelude or the new module organization in your imports.
For some inspiration, see the example applications: