From fc9a6f1416be514e9d26b301d05e7e347560560b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Nov 2024 22:37:48 -0500 Subject: Add RNGs to the language --- docs/bytes.md | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'docs/bytes.md') 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. -- cgit v1.2.3