Generic Type Method

random(in:using:)

Returns a vector with random values from within the specified range in all lanes, using the given generator as a source for randomness.

Declaration

static func random<T>(in range: ClosedRange<Scalar>, using generator: inout T) -> SIMD2<Scalar> where T : RandomNumberGenerator
Available when Scalar conforms to FixedWidthInteger.