Instance Method


Initializes a random source from a nondeterministic seed.


- (instancetype)init;

Return Value

A new, independent random source.


Calling this method seeds the random source with a sequence of bytes sampled from a high-entropy system source. To later replicate the sequence of numbers generated by this source, read the seed property and use the resulting data to initialize another random source with the initWithSeed: initializer.

See Also

Creating a Random Source

- initWithSeed:

Initializes a random source with the specified seed data.