-
Notifications
You must be signed in to change notification settings - Fork 0
RandomNumberGenerator
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.RandomNumberGenerator |
| Namespace | Electron2D |
| Kind | class |
| Category | Math and Data |
Represents the random number generator type.
public class Electron2D.RandomNumberGenerator : Electron2D.RefCountedProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: RandomNumberGenerator
RNG baseline with seed/state replay, integer/float ranges and PCG32 sequence policy for 0.1.
This type is part of the Electron2D 0.1.0 Preview public API.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This API is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
Seed |
Property | Gets or sets the seed value. |
State |
Property | Gets or sets the state value. |
Electron2D.RandomNumberGenerator() |
Constructor | Initializes a new instance of the RandomNumberGenerator type. |
Randf() |
Method | Executes the randf operation. |
RandfRange(System.Single, System.Single) |
Method | Executes the randf range operation. |
Randfn(System.Single, System.Single) |
Method | Executes the randfn operation. |
Randi() |
Method | Executes the randi operation. |
RandiRange(System.Int32, System.Int32) |
Method | Executes the randi range operation. |
Randomize() |
Method | Executes the randomize operation. |
Kind: Property
public System.UInt64 Seed { get; set; }Gets or sets the seed value.
This property follows the validation and lifetime rules of its declaring type.
The current seed value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Property
public System.UInt64 State { get; set; }Gets or sets the state value.
This property follows the validation and lifetime rules of its declaring type.
The current state value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Constructor
public Electron2D.RandomNumberGenerator()Initializes a new instance of the RandomNumberGenerator type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.Single Randf()()Executes the randf operation.
This method follows the validation and lifetime rules of its declaring type.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.Single RandfRange(System.Single, System.Single)(System.Single from, System.Single to)Executes the randf range operation.
This method follows the validation and lifetime rules of its declaring type.
-
from: The from value. -
to: The to value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.Single Randfn(System.Single, System.Single)(System.Single mean, System.Single deviation)Executes the randfn operation.
This method follows the validation and lifetime rules of its declaring type.
-
mean: The mean value. -
deviation: The deviation value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.UInt32 Randi()()Executes the randi operation.
This method follows the validation and lifetime rules of its declaring type.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.Int32 RandiRange(System.Int32, System.Int32)(System.Int32 from, System.Int32 to)Executes the randi range operation.
This method follows the validation and lifetime rules of its declaring type.
-
from: The from value. -
to: The to value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Kind: Method
public System.Void Randomize()()Executes the randomize operation.
This method follows the validation and lifetime rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.RandomNumberGenerator
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.