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<Self.Scalar>, using generator: inout T) -> Self where T : RandomNumberGenerator
Available when Scalar conforms to FixedWidthInteger.