2.7 Randomly Generated Matrices
normal(nrows[, ncols[, mean[, std]]])
- Returns a type 'd' matrix of size nrows by ncols with elements chosen from a normal distribution with mean mean and standard deviation std. The default values for the optional arguments are ncols=1, mean=0.0, std=1.0.
uniform(nrows[, ncols[, a[, b]]])
- Returns a type 'd' matrix of size nrows by ncols matrix with elements uniformly distributed between a and b. The default values for the optional arguments are ncols=1, a=0.0, b=1.0.
setseed([value])
- Sets the state of the random number generator. value must be an integer. If value is absent or equal to zero, the value is taken from the system clock. If the Python random number generators are used, this is equivalent to random.seed(value).
getseed()
- Returns the current state of the random number generator. This function is only available if the GSL random number generators are installed. (The state of the random number generators in the Python random module can be managed via the functions random.getstate() and random.setstate().)