Type Method

random(in:)

Returns a vector with random values from within the specified range in all lanes.

Declaration

static func random(in range: Range<Self.Scalar>) -> Self
Available when Scalar conforms to BinaryFloatingPoint and Scalar.RawSignificand conforms to FixedWidthInteger.