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
,org.robovm.objc.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 class
GKRandomSource.GKRandomSourcePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description GKRandomSource()
GKRandomSource(NSCoder decoder)
protected
GKRandomSource(NSObject.Handle h, long handle)
protected
GKRandomSource(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(NSCoder coder)
static GKRandomSource
getSharedRandom()
protected long
init(NSCoder decoder)
boolean
nextBool()
long
nextInt()
long
nextInt(long upperBound)
float
nextUniform()
NSArray<?>
shuffleArray(NSArray<?> array)
static boolean
supportsSecureCoding()
-
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, willChangeValues
-
-
-
-
Constructor Detail
-
GKRandomSource
public GKRandomSource()
-
GKRandomSource
protected GKRandomSource(NSObject.Handle h, long handle)
-
GKRandomSource
protected GKRandomSource(NSObject.SkipInit skipInit)
-
GKRandomSource
public GKRandomSource(NSCoder decoder)
-
-
Method Detail
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(NSCoder decoder)
-
getSharedRandom
public static GKRandomSource getSharedRandom()
-
nextUniform
public float nextUniform()
- Specified by:
nextUniform
in interfaceGKRandom
-
-