(random-between low high)
low
and high
, inclusive.(random-natural)
(random-positive)
(random-integer)
(random-rational)
(random-complex)
(random-number)
(random-data-size)
(random-natural-list)
(random-natural)
values, using a length determined by (random-data-size)
.(random-natural-list-of-length ln)
(random-natural)
values of a specified length. ln
must be either a fixed natural number (such as 10) or a variable. So, for instance, (random-natural-list-of-length (random-natural))
will give an error. Instead, generate the length separately: (n :value (random-natural) xs :value (random-natural-list-of-length n))
(random-integer-list)
and (random-integer-list-of-length ln)
(random-digit-list)
and (random-digit-list-of-length ln)
(random-between-list low high)
and (random-between-list-of-length low high ln)
low
and high
inclusive (using (random-between low high)
).(random-increasing-list)
Note: The below random-list-of
versions of the above functions are included in Proof Pad for compatibility with DrACuLa; They don’t add any functionality over the above forms. Additionally, unlike in DrACuLa, the parameters to random-list-of
must match one of the below templates, or they won’t work. I recommend that you use the above generators instead.
(random-list-of (random-natural))
(random-natural-list)
(random-list-of (random-natural) :size ln)
(random-natural-list-of-length ln)
(random-list-of (random-integer))
(random-integer-list)
(random-list-of (random-integer) :size ln)
(random-integer-list-of-length ln)
(random-list-of (random-between low high))
(random-between-list low high)
(random-list-of (random-between low high) :size ln)
(random-between-list-of-length low high ln)