Class Rand
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Rand : BoxedRecord, IEquatable<Rand>
- Inheritance
-
Rand
- Implements
- Inherited Members
Constructors
Rand(RandOwnedHandle)
public Rand(RandOwnedHandle handle)
Parameters
handle
RandOwnedHandle
Properties
Handle
public RandOwnedHandle Handle { get; }
Property Value
Methods
Copy()
[Version("2.4")]
public Rand Copy()
Returns
Double()
public double Double()
Returns
DoubleRange(double, double)
public double DoubleRange(double begin, double end)
Parameters
Returns
Equals(Rand?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Rand? other)
Parameters
other
RandAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Int()
public uint Int()
Returns
IntRange(int, int)
public int IntRange(int begin, int end)
Parameters
Returns
New()
public static Rand New()
Returns
NewWithSeed(uint)
public static Rand NewWithSeed(uint seed)
Parameters
seed
uint
Returns
NewWithSeedArray(ref uint, uint)
[Version("2.4")]
public static Rand NewWithSeedArray(ref uint seed, uint seedLength)
Parameters
Returns
SetSeed(uint)
public void SetSeed(uint seed)
Parameters
seed
uint
SetSeedArray(ref uint, uint)
[Version("2.4")]
public void SetSeedArray(ref uint seed, uint seedLength)