Chapter 63. random
Table of Contents
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
,
integer me
)
seed
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | random | |
seed | None | integer |
Properties
Property | Type | Description |
---|---|---|
_private | randomprivate | |
next | function | |
reseed | function | |
type | type |
Methods
next()
Description
Prototype
randomvar
.next
(
random
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | random |
reseed()
Description
Prototype
randomvar
.reseed
(
random
,
integer me
)
seed
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | random | |
seed | None | integer |