aboutsummaryrefslogtreecommitdiff
path: root/docs/rng.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-05 00:21:30 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-05 00:21:30 -0500
commit0a3ad8ba914ab42ebbb88a3d955f71d71d581fc1 (patch)
treee984b58347627f0417a6961dbb8e83afe4739653 /docs/rng.md
parent665050940f1562b045efe942686d04b3c3fac381 (diff)
Alphabetize and index functions
Diffstat (limited to 'docs/rng.md')
-rw-r--r--docs/rng.md9
1 files changed, 9 insertions, 0 deletions
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:**