Table of Contents

Class Rand

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Rand
Inheritance
Rand
Inherited Members

Methods

Copy(RandHandle)

Calls native method g_rand_copy. Version: 2.4

[Version("2.4")]
public static extern RandOwnedHandle Copy(RandHandle rand)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

Returns

RandOwnedHandle

Transfer ownership: Full Nullable: False

Double(RandHandle)

Calls native method g_rand_double.

public static extern double Double(RandHandle rand)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

DoubleRange(RandHandle, double, double)

Calls native method g_rand_double_range.

public static extern double DoubleRange(RandHandle rand, double begin, double end)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

begin double

Transfer ownership: None Nullable: False

end double

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

Free(RandHandle)

Calls native method g_rand_free.

public static extern void Free(RandHandle rand)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_rand_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Int(RandHandle)

Calls native method g_rand_int.

public static extern uint Int(RandHandle rand)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

IntRange(RandHandle, int, int)

Calls native method g_rand_int_range.

public static extern int IntRange(RandHandle rand, int begin, int end)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

begin int

Transfer ownership: None Nullable: False

end int

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

New()

Calls native constructor g_rand_new.

public static extern RandOwnedHandle New()

Returns

RandOwnedHandle

Transfer ownership: Full Nullable: False

NewWithSeed(uint)

Calls native constructor g_rand_new_with_seed.

public static extern RandOwnedHandle NewWithSeed(uint seed)

Parameters

seed uint

Transfer ownership: None Nullable: False

Returns

RandOwnedHandle

Transfer ownership: Full Nullable: False

NewWithSeedArray(ref uint, uint)

Calls native constructor g_rand_new_with_seed_array. Version: 2.4

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

Parameters

seed uint

Transfer ownership: None Nullable: False

seedLength uint

Transfer ownership: None Nullable: False

Returns

RandOwnedHandle

Transfer ownership: Full Nullable: False

SetSeed(RandHandle, uint)

Calls native method g_rand_set_seed.

public static extern void SetSeed(RandHandle rand, uint seed)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

seed uint

Transfer ownership: None Nullable: False

SetSeedArray(RandHandle, ref uint, uint)

Calls native method g_rand_set_seed_array. Version: 2.4

[Version("2.4")]
public static extern void SetSeedArray(RandHandle rand, ref uint seed, uint seedLength)

Parameters

rand RandHandle

Transfer ownership: None Nullable: False

seed uint

Transfer ownership: None Nullable: False

seedLength uint

Transfer ownership: None Nullable: False