Returns a value from a uniform, independent distribution of binary data.
- Xcode 10.0+
- Swift Standard Library
A random value of
T. Bits are randomly distributed so that every value of
T is equally likely to be returned.
Use this method when you need random binary data to generate another value. If you need an integer value within a specific range, use the static
random(in: method on that integer type instead of this method.