Emojicode Documentation 1.0 beta 2

Class 🎰

Pseudo-random number generator. The default implementation relies on the Mersenne Twister algorithm.

Initializers

πŸ†•

 πŸ†• 

Creates a new generator and seeds it with a random value, if possible using hardware entropy.

Methods

πŸ”’β—οΈ

❗️ πŸ”’  a πŸ”’  b πŸ”’ ➑️ πŸ”’

Generates an integer. Integers are uniformly distributed on the closed interval [a, b].

πŸ’―β—οΈ

❗️ πŸ’― ➑️ πŸ’―

Generates a real, where reals are uniformly distributed on the interval [0, 1).

deinit❗️

❗️ deinit