diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 22:37:48 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 22:37:48 -0500 |
| commit | fc9a6f1416be514e9d26b301d05e7e347560560b (patch) | |
| tree | 7d61cc3657c36dde05135f17dbf5923cff177abf /docs/bytes.md | |
| parent | 52e3d3fe6f2c3e5051affe155fed364d1a5d623c (diff) | |
Add RNGs to the language
Diffstat (limited to 'docs/bytes.md')
| -rw-r--r-- | docs/bytes.md | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/docs/bytes.md b/docs/bytes.md index eb733424..0b618339 100644 --- a/docs/bytes.md +++ b/docs/bytes.md @@ -9,27 +9,4 @@ integer with a `[B]` suffix, e.g. `255[B]`. # Byte Methods -## `random` - -**Description:** -Generates a random byte value in the specified range. - -**Signature:** -```tomo -func random(min: Byte = Byte.min, max: Byte = Byte.max -> Byte) -``` - -**Parameters:** - -- `min`: The minimum value to generate (inclusive). -- `max`: The maximum value to generate (inclusive). - -**Returns:** -A random byte chosen with uniform probability from within the given range -(inclusive). If `min` is greater than `max`, an error will be raised. - -**Example:** -```tomo ->> Byte.random() -= 42[B] -``` +None. |
