diff --git a/prelude.ld b/prelude.ld index e492cc4..76c50c9 100644 --- a/prelude.ld +++ b/prelude.ld @@ -984,7 +984,7 @@ fn heading/vector { &&& more number functions fn random { - "Returns a random something. With zero arguments, returns a random number between 0 (inclusive) and 1 (exclusive). With one argument, returns a random number between 0 and n. With two arguments, returns a random number between m and n. Alternately, given a collection (list, dict, set), it returns a random member of that collection." + "Returns a random something. With zero arguments, returns a random number between 0 (inclusive) and 1 (exclusive). With one argument, returns a random number between 0 and n. With two arguments, returns a random number between m and n. Alternately, given a collection (tuple, list, dict, set), it returns a random member of that collection." () -> base :random () (n as :number) -> mult (n, random ()) (m as :number, n as :number) -> add (m, random (sub (n, m)))