Class GKRandomDistribution

    • Constructor Detail

      • GKRandomDistribution

        public GKRandomDistribution()
      • GKRandomDistribution

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

        protected GKRandomDistribution​(NSObject.SkipInit skipInit)
      • GKRandomDistribution

        public GKRandomDistribution​(GKRandom source,
                                    long lowestInclusive,
                                    long highestInclusive)
      • GKRandomDistribution

        public GKRandomDistribution​(long lowestInclusive,
                                    long highestInclusive)
    • Method Detail

      • getLowestValue

        public long getLowestValue()
      • getHighestValue

        public long getHighestValue()
      • getNumberOfPossibleOutcomes

        public long getNumberOfPossibleOutcomes()
      • init

        protected long init​(GKRandom source,
                            long lowestInclusive,
                            long highestInclusive)
      • nextInt

        public long nextInt()
        Specified by:
        nextInt in interface GKRandom
      • nextInt

        public long nextInt​(long upperBound)
        Specified by:
        nextInt in interface GKRandom
      • nextBool

        public boolean nextBool()
        Specified by:
        nextBool in interface GKRandom
      • create

        protected static long create​(long lowestInclusive,
                                     long highestInclusive)