Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

Generating Random Numbers

The following statements and functions generate random numbers.

Randomize Statement

Initialises the random-number generator used by the Rnd function.

Rnd Function

Returns a random number in the range 0.0 to 1.0.