IGKRandom.GetNextInt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetNextInt() |
Returns an integer within the bounds of the generator. |
| GetNextInt(UIntPtr) |
Returns a random integer that is less than |
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
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
unativeint
- Attributes