Constructs a new vector with uniform random numbers between 0 and 1.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseVector<double> CreateRandom(
int length,
ArrayMutability mutability = ArrayMutability.Immutable
)
Public Shared Function CreateRandom (
length As Integer,
Optional mutability As ArrayMutability = ArrayMutability.Immutable
) As DenseVector(Of Double)
public:
static DenseVector<double>^ CreateRandom(
int length,
ArrayMutability mutability = ArrayMutability::Immutable
)
static member CreateRandom :
length : int *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.Immutable
*)
-> DenseVector<float>
Parameters
- length
- Type: SystemInt32
The length of the vector. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the vector's values may be changed.
The default is mutable values.
Return Value
Type:
DenseVectorDoubleA
DenseVectorT.
Reference