Table of Contents

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

RandOwnedHandle

Methods

Copy()

[Version("2.4")]
public Rand Copy()

Returns

Rand

Double()

public double Double()

Returns

double

DoubleRange(double, double)

public double DoubleRange(double begin, double end)

Parameters

begin double
end double

Returns

double

Equals(Rand?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Rand? other)

Parameters

other Rand

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

GetGType()

public static Type GetGType()

Returns

Type

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

uint

IntRange(int, int)

public int IntRange(int begin, int end)

Parameters

begin int
end int

Returns

int

New()

public static Rand New()

Returns

Rand

NewWithSeed(uint)

public static Rand NewWithSeed(uint seed)

Parameters

seed uint

Returns

Rand

NewWithSeedArray(ref uint, uint)

[Version("2.4")]
public static Rand NewWithSeedArray(ref uint seed, uint seedLength)

Parameters

seed uint
seedLength uint

Returns

Rand

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)

Parameters

seed uint
seedLength uint