Class GKLinearCongruentialRandomSource

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, GKRandom, ObjCProtocol

public class GKLinearCongruentialRandomSource
extends GKRandomSource
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKLinearCongruentialRandomSource

      public GKLinearCongruentialRandomSource()
    • GKLinearCongruentialRandomSource

      protected GKLinearCongruentialRandomSource​(NSObject.Handle h, long handle)
    • GKLinearCongruentialRandomSource

      protected GKLinearCongruentialRandomSource​(NSObject.SkipInit skipInit)
    • GKLinearCongruentialRandomSource

      public GKLinearCongruentialRandomSource​(long seed)
    • GKLinearCongruentialRandomSource

      public GKLinearCongruentialRandomSource​(NSCoder coder)
  • Method Details

    • getSeed

      public long getSeed()
    • setSeed

      public void setSeed​(long v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(long seed)
    • getSharedRandom

      public static GKRandomSource getSharedRandom()