randu (1)
Uniform law (column vector).
Prototype
static Vecf randu(int n, float a=-1, float b=1)
Parameters
n | Number of points to generate. |
a | Minimal value. |
b | Maximal value. |
Returns
A vector of random values, sampling according to a uniform law between a and b.
Description
Example
