Random.org HTTP API

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

[

#:numnum

#:minmin

#:maxmax])

→

(listofinteger?)

num

:

(integer-in1(expt104))

=

random-org:*default-number-integers*

min

:

(integer-in(expt-109)(expt109))

=

random-org:*default-min-integer*

max

:

(integer-in(expt-109)(expt109))

=

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

[

#:minmin

#:maxmax])

→

(listofinteger?)

min

:

(integer-in(expt-109)(expt109))

=

random-org:*default-min-integer*

max

:

(integer-in(expt-109)(expt109))

=

random-org:*default-max-integer*

random-org:generate-strings produces a sequence of random strings.

(random-org:generate-strings

[

#:numnum

#:lenlen

#:digitsdigits

#:upperupper

#:lowerlower

#:uniqueunique])

→(listofstring?)

num:(integer-in1(expt104))=*default-number-strings*

len:(integer-in120)=*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.