Class
GSRandomNumberGenerator
Declaration
class GSRandomNumberGeneratorDeclaration
@interface GSRandomNumberGenerator : NSObjectDeclaration
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
Creates an insecure RNG with a pseudo-random seed.
Creates an insecure RNG with the given seed.
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.
Relationships
Inherits From
NSObject
Conforms To
ObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable
Relationships
Inherits From
NSObject