IGKRandom.GetNextInt Method

Definition

Overloads

GetNextInt()

Returns an integer within the bounds of the generator.

GetNextInt(nuint)

Returns an integer that is less than the upper bound of the generator and also less than upperBound.

GetNextInt()

Returns an integer within the bounds of the generator.

[Foundation.Export("nextInt")]
[Foundation.Preserve(Conditional=true)]
public nint GetNextInt ();
abstract member GetNextInt : unit -> nint

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to

GetNextInt(nuint)

Returns an integer that is less than the upper bound of the generator and also less than upperBound.

[Foundation.Export("nextIntWithUpperBound:")]
[Foundation.Preserve(Conditional=true)]
public nuint GetNextInt (nuint upperBound);
abstract member GetNextInt : nuint -> nuint

Parameters

upperBound
System.System.UIntPtr System.unativeint

Returns

System.System.UIntPtr System.unativeint
Attributes

Applies to