SIMPOL Documentation

Chapter 63. random

This library supplies the random type for generating pseudo-random numbers between 0 and 1.

random

Description

Type Tags

None

Object Value

Objects of type random have no value, and it is an error to try to get or set this value.

random.new()

Description

Prototype

random.new ( random me, integer seed )

Parameters

ParameterDefault valueType nameDescription
meNonerandom
seedNoneinteger

Properties

PropertyTypeDescription
_privaterandomprivate
nextfunction
reseedfunction
typetype

Methods

next()

Description

Prototype

randomvar.next ( random me )

Parameters
ParameterDefault valueType nameDescription
meNonerandom

reseed()

Description

Prototype

randomvar.reseed ( random me, integer seed )

Parameters
ParameterDefault valueType nameDescription
meNonerandom
seedNoneinteger