Package org.robovm.apple.gameplaykit
Class GKRandomSource
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.gameplaykit.GKRandomSource
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,GKRandom,ObjCProtocol
- Direct Known Subclasses:
GKARC4RandomSource,GKLinearCongruentialRandomSource,GKMersenneTwisterRandomSource
public class GKRandomSource extends NSObject implements GKRandom, NSSecureCoding
- Since:
- Available in iOS 9.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGKRandomSource.GKRandomSourcePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description GKRandomSource()GKRandomSource(NSCoder coder)protectedGKRandomSource(NSObject.Handle h, long handle)protectedGKRandomSource(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description voidencode(NSCoder coder)static GKRandomSourcegetSharedRandom()protected longinit(NSCoder coder)booleannextBool()longnextInt()longnextInt(long upperBound)floatnextUniform()NSArray<?>shuffleArray(NSArray<?> array)static booleansupportsSecureCoding()Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
GKRandomSource
public GKRandomSource() -
GKRandomSource
-
GKRandomSource
-
GKRandomSource
-
-
Method Details
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
-
shuffleArray
-
getSharedRandom
-
nextInt
public long nextInt() -
nextInt
public long nextInt(long upperBound) -
nextUniform
public float nextUniform()- Specified by:
nextUniformin interfaceGKRandom
-
nextBool
public boolean nextBool() -
encode
-