Version: 4.1.5
Random.org HTTP API
by Tyler Curtis <ekiru.0 AT gmail.com>
random-org:check-quota queries your ip’s remaining random.org quota.
(random-org:check-quota [#:ip ip]) → (integer?) |
ip : (or/c string? boolean?) = #f |
ip is an optional ip to check the quota for. If an ip is not specified, random-org:check-quota defaults to your computer’s ip address.
random-org:generate-integers produces a list of num random numbers between min and max, inclusive?
(random-org:generate-integers | [ | #:num num | | | | | | | #:min min | | | | | | | #:max max]) | | → | | (listof integer?) |
|
| num | | : | | (integer-in 1 (expt 10 4)) | | | | = | | random-org:*default-number-integers* |
|
| min | | : | | (integer-in (expt -10 9) (expt 10 9)) | | | | = | | random-org:*default-min-integer* |
|
| max | | : | | (integer-in (expt -10 9) (expt 10 9)) | | | | = | | random-org:*default-max-integer* |
|
random-org:generate-sequence produces a list consisting of the integers between min and max, inclusive, randomly arranged.
(random-org:generate-sequence | [ | #:min min | | | | | | | #:max max]) | | → | | (listof integer?) |
|
| min | | : | | (integer-in (expt -10 9) (expt 10 9)) | | | | = | | random-org:*default-min-integer* |
|
| max | | : | | (integer-in (expt -10 9) (expt 10 9)) | | | | = | | random-org:*default-max-integer* |
|
random-org:generate-strings produces a sequence of random strings.
(random-org:generate-strings | [ | #:num num | | | | #:len len | | | | #:digits digits | | | | #:upper upper | | | | #:lower lower | | | | #:unique unique]) | |
|
→ (listof string?) |
num : (integer-in 1 (expt 10 4)) = *default-number-strings* |
len : (integer-in 1 20) = *default-length-strings* |
digits : boolean? = #t |
upper : boolean? = #t |
lower : boolean? = #t |
unique : boolean? = #t |
digits, upper, and lower determine whether to include digits, uppercase letters, and lowercase letters in the random strings. unique determines whether the list of strings is allowed to include duplicates.
random-org:generate-password generates an ASCII password of specified length using generate-integers and integer->char.
(random-org:generate-password length) → string? |
length : (integer-in 1 (expt 10 4)) |