You could use the in-place function Random.rand! and store the result in a preallocated array. You could convert this preallocated array to an SVector without incurring allocations.
You could use the in-place function Random.rand! and store the result in a preallocated array. You could convert this preallocated array to an SVector without incurring allocations.