From 0a3ad8ba914ab42ebbb88a3d955f71d71d581fc1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 5 Mar 2025 00:21:30 -0500 Subject: Alphabetize and index functions --- docs/rng.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/rng.md') diff --git a/docs/rng.md b/docs/rng.md index 2663197e..306f2015 100644 --- a/docs/rng.md +++ b/docs/rng.md @@ -19,6 +19,15 @@ This documentation provides details on RNG functions available in the API. [Arrays](arrays.md) also have some methods which use RNG values: `array:shuffle()`, `array:shuffled()`, `array:random()`, and `array:sample()`. +- [`func bool(rng: RNG, p: Num = 0.5 -> Bool)`](#`bool) +- [`func byte(rng: RNG -> Byte)`](#`byte) +- [`func bytes(rng: RNG, count: Int -> [Byte])`](#`bytes) +- [`func copy(rng: RNG -> RNG)`](#`copy) +- [`func int(rng: RNG, min: Int, max: Int -> Int)`](#`int`, `int64`, `int32`, `int16`, `int8) +- [`func new(seed: [Byte] = (/dev/urandom):read_bytes(40)! -> RNG)`](#`new) +- [`func num(rng: RNG, min: Num = 0.0, max: Num = 1.0 -> Int)`](#`num`, `num32) +- [`func set_seed(rng: RNG, seed: [Byte])`](#`set_seed) + ### `bool` **Description:** -- cgit v1.2.3