Skip to content

clojure.core/rand-int

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 3 Runnable: 1
([n])

Returns a random integer between 0 (inclusive) and n (exclusive).

Examples

by devn on
by rsachdeva on . May have evaluation errors.
by tomdl89 on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.