Skip to content

FreeRandom

Narta Xaymar Dirks edited this page Dec 2, 2026 · 1 revision

FreeRandom BlitzLLVM

FreeRandom:Void random:Int32
Parameter Mode Type Default Description
random In Int32 required The generator.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Frees a generator that CreateRandom made. Its handle can be given to the next generator that is made, so don't use it after this. FreeRandom 0 does nothing, except in a debug build, which stops with an error.

Differences

  • Not in the originals.

Examples

rng = CreateRandom(0, 42)
Print SampleRandom(rng, 1, 6)
FreeRandom rng

Related Commands

CreateRandom BlitzLLVM, RandomState BlitzLLVM, SampleRandom BlitzLLVM, SeedRandom BlitzLLVM, SetRandomState BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally