Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 307 Bytes

File metadata and controls

20 lines (13 loc) · 307 Bytes

std.random

Pseudo-random number generation.

Functions

random_int() -> Int

Returns a pseudo-random integer.

seed(seed: Int) -> Void

Seeds the pseudo-random number generator with the given value.

Examples

load std.random

random.seed(12345)
let r = random.random_int()