Skip to content

dos_random

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns a pseudo random number.

Syntax

(dos_random)

Returns

An integer pseudo random number if successful.

nil on error.

Example

Command: (dos_random)
4748

Command: (dos_random)
13395

Command: (rem (dos_random) 100) 'in the range 0-99
37

Command: (+ (rem (dos_random) 100) 1) 'in the range 1-100
69

Command: (+ (rem (dos_random) 30) 1985) 'in the range 1985-2014
2003

Clone this wiki locally