aboutsummaryrefslogtreecommitdiff
path: root/docs/booleans.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 22:37:48 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 22:37:48 -0500
commitfc9a6f1416be514e9d26b301d05e7e347560560b (patch)
tree7d61cc3657c36dde05135f17dbf5923cff177abf /docs/booleans.md
parent52e3d3fe6f2c3e5051affe155fed364d1a5d623c (diff)
Add RNGs to the language
Diffstat (limited to 'docs/booleans.md')
-rw-r--r--docs/booleans.md24
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/booleans.md b/docs/booleans.md
index 5610d863..4f44931a 100644
--- a/docs/booleans.md
+++ b/docs/booleans.md
@@ -35,27 +35,3 @@ func from_text(text: Text -> Bool?)
>> Bool.from_text("???")
= !Bool
```
-
----
-
-## `random`
-
-**Description:**
-Generates a random boolean value based on a specified probability.
-
-**Signature:**
-```tomo
-func random(p: Float = 0.5 -> Bool)
-```
-
-**Parameters:**
-
-- `p`: The probability (between `0` and `1`) of returning `yes`. Default is `0.5`.
-
-**Returns:**
-`yes` with probability `p`, and `no` with probability `1 - p`.
-
-**Example:**
-```tomo
->> Bool.random(70%) // yes (with 70% probability)
-```