Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 7 revisions

Blitz3DBlitzPlusBlitzBasic

Rnd

Rnd:Float32 from:Float32, to:Float32=0
Parameter Mode Type Default Description
from In Float32 required Lowest result, or the limit when to is left out.
to In Float32 0 The limit, never reached. Defaults to 0.

Returns: A random float in the range.

Description

Returns a random float from from up to, but not including, to. With one argument the range is 0 up to that number.

Examples

SeedRnd 7
r# = Rnd(5, 6)
Print r >= 5 And r < 6
1

Related Commands

Rand, RndSeed, SeedRnd

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally