Share via


IGKRandom.GetNextInt Method

Definition

Overloads

Name Description
GetNextInt()

Returns an integer within the bounds of the generator.

GetNextInt(UIntPtr)

Returns a random integer that is less than upperBound.

GetNextInt()

Returns an integer within the bounds of the generator.

[Foundation.Export("nextInt")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetNextInt();
[<Foundation.Export("nextInt")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetNextInt : unit -> nativeint
override this.GetNextInt : unit -> nativeint

Returns

IntPtr

nativeint

Attributes

Applies to

GetNextInt(UIntPtr)

Returns a random integer that is less than upperBound.

[Foundation.Export("nextIntWithUpperBound:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIntPtr GetNextInt(UIntPtr upperBound);
[<Foundation.Export("nextIntWithUpperBound:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetNextInt : unativeint -> unativeint
override this.GetNextInt : unativeint -> unativeint

Parameters

upperBound
UIntPtr

unativeint

Returns

UIntPtr

unativeint

Attributes

Applies to