Vector.CreateRandom Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0

Overload List

CreateRandom(Int32, ArrayMutability) Constructs a new vector with uniform random numbers between 0 and 1.
Obsolete
CreateRandom(Int32, Random, ArrayMutability) Constructs a new vector with uniform random numbers between 0 and 1.
Obsolete

CreateRandom(Int32, ArrayMutability)

Note: This API is now obsolete.
Constructs a new vector with uniform random numbers between 0 and 1.
C#
[ObsoleteAttribute("Use Vector.Random(length, mutability) instead.")]
public static DenseVector<double> CreateRandom(
	int length,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

length  Int32
The length of the vector.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Return Value

DenseVector<Double>
A DenseVector<T>.

CreateRandom(Int32, Random, ArrayMutability)

Note: This API is now obsolete.
Constructs a new vector with uniform random numbers between 0 and 1.
C#
[ObsoleteAttribute("Use Vector.Random(length, random, mutability) instead.")]
public static DenseVector<double> CreateRandom(
	int length,
	Random random,
	ArrayMutability mutability = ArrayMutability.MutableValues
)

Parameters

length  Int32
The length of the vector.
random  Random
The random number generator to use.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Return Value

DenseVector<Double>
A DenseVector<T>.

See Also