powered by
rand(nrow = 1, ncol = 1, ...)randn(nrow = 1, ncol = 1, ...)
randn(nrow = 1, ncol = 1, ...)
runif
rnorm
nrow
ncol
rand
randn
rand(2, 3) # 2-by-3 matrix of uniform random numbers rand(2, 3, min = 100, max = 200) randn(2, 3) # 2-by-3 matrix of standard normal random variates randn(2, 3, mean = 10, sd = 0.1)
Run the code above in your browser using DataLab