Returns a vector with random values from within the specified range in all lanes.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
static func random(in range: Closed Range<Scalar>) -> SIMD2<Scalar>
Available when Scalar conforms to Fixed Width Integer.