CAST II Game Engine |
||||||||
![]() |
MAIN | FEATURES | SCREENSHOTS | FORUMS | MANUAL | DOWNLOADS | CONTACTS | |
type TRandomGenerator = class
| Name | Description | |
|---|---|---|
![]() | FCurrentSequence | Current sequence |
![]() | RandomChain | Chain values for sequences |
![]() | RandomSeed | Seeds for sequences |
![]() | constructor Create; |
![]() | function GenerateRaw: Longword; virtual; |
![]() | procedure InitSequence(Chain, Seed: Longword); |
![]() | function Rnd(Range: Single): Single; |
![]() | function RndI(Range: Integer): Integer; |
![]() | function RndSymm(Range: Single): Single; |
![]() | procedure SetCurrentSequence(const Value: Cardinal); |
![]() | procedure SetMaxSequence(AMaxSequence: Integer); |
![]() | constructor Create; |
![]() | function GenerateRaw: Longword; virtual; |
Generate a raw random number. Fastest method
![]() | procedure InitSequence(Chain, Seed: Longword); |
Initializes the current sequence with the specified chain value and the specified seed
![]() | function Rnd(Range: Single): Single; |
Generate a floating point random number within the given range
![]() | function RndI(Range: Integer): Integer; |
Generate an integer random number within the range [0..Range-1]
![]() | function RndSymm(Range: Single): Single; |
Generate a floating point random number within the range [-Range..Range]
![]() | procedure SetCurrentSequence(const Value: Cardinal); |
![]() | procedure SetMaxSequence(AMaxSequence: Integer); |
Number of sequences
![]() | property CurrentSequence: Cardinal; |
![]() | property CurrentSequence: Cardinal; |
Current sequence
|
Last modified: 26 Oct, 2008 |