| Method | Defined by | ||
|---|---|---|---|
|
Random(prng:Class = null)
| Random | ||
|
autoSeed():void
Gather anything we have that isn't entirely predictable:
- memory used
- system capabilities
- timing stuff
- installed fonts
| Random | ||
|
dispose():void
| Random | ||
|
nextByte():int
| Random | ||
|
nextBytes(buffer:ByteArray, length:int):void
| Random | ||
|
seed(x:int = 0):void
| Random | ||
|
toString():String
| Random | ||
| Random | () | constructor |
public function Random(prng:Class = null)Parameters
prng:Class (default = null) |
| autoSeed | () | method |
public function autoSeed():voidGather anything we have that isn't entirely predictable: - memory used - system capabilities - timing stuff - installed fonts
| dispose | () | method |
public function dispose():void
| nextByte | () | method |
public function nextByte():int
Returns
int |
| nextBytes | () | method |
public function nextBytes(buffer:ByteArray, length:int):voidParameters
buffer:ByteArray |
|
length:int |
| seed | () | method |
public function seed(x:int = 0):voidParameters
x:int (default = 0) |
| toString | () | method |
public function toString():String
Returns
String |