X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Frandom.lisp;fp=src%2Frandom.lisp;h=0b79c8cf60bb35b51ccabb716c8cd488b572db0d;hb=ba63acfa943d02a524ae0a81ffd59477f1ccd6b3;hp=1a83349856927ca7def3b00059a79da02795c865;hpb=7b3b2cf51c6213e6a097ff049594977e1b1deae3;p=fiveam.git diff --git a/src/random.lisp b/src/random.lisp index 1a83349..0b79c8c 100644 --- a/src/random.lisp +++ b/src/random.lisp @@ -51,9 +51,9 @@ evaluated. BINDING is either a symbol or a list which will be passed to destructuring-bind. GUARD is a form which, if present, stops BODY from executing when it returns NIL. The GUARDS are evaluated after all the random data has been generated and they can refer to the current -value of any binding. +value of any binding. + -[NOTE] +\[NOTE] Generator forms, unlike guard forms, can not contain references to the bound variables. @@ -201,7 +201,7 @@ than or equal to MIN and less than or equal to MIN." (long-float most-positive-long-float)) ) (defun gen-float (&key bound (type 'short-float) min max) - "Returns a generator which producs floats of type TYPE. + "Returns a generator which producs floats of type TYPE. BOUND:: @@ -223,7 +223,7 @@ TYPE:: The type of the returned float. Defaults to `SHORT-FLOAT`. Effects the default values of BOUND, MIN and MAX. -[NOTE] +\[NOTE] Since GEN-FLOAT is built on CL:RANDOM the distribution of returned values will be continuous, not discrete. In other words: the values will be evenly distributed across the specified numeric range, the @@ -309,7 +309,7 @@ ELEMENT-TYPE:: The type of array to create. -ELEMENTS:: +ELEMENTS:: The random element generator. "