Declaration

class GSRandomNumberGenerator

Declaration

@interface GSRandomNumberGenerator : NSObject

Declaration

class GSRandomNumberGenerator(NSObject)

Topics

Initializers

  • Creates an insecure RNG with a pseudo-random seed.

  • Creates an insecure RNG with the given seed.

Instance Methods

  • Returns a random Boolean and advances the random number generator.

  • Returns a unsigned integer in the range [0, bound) and advances the random number generator.

  • Resets the state of the RNG to the given seed.

  • Resets the state of the RNG to a pseudo-random seed.

Type Methods

  • Produces a seed specific to the given string.

Topics

Instance Methods

Type Methods

Relationships

Inherits From

  • NSObject

Conforms To

  • ObjectiveC.NSObjectProtocol
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable

Relationships

Inherits From

  • NSObject