rand(nrow = 1, ncol = 1, ..., min = 0, max = 1, atleast_2d = NULL)
rand
only).rand
only).FALSE
. This
behavior can also be changed globally using, for example
options(atleast_2d = TRUE)
.randi
, randn
, runif
.
rand(100, 100) # 100 by 100 matrix of uniform random numbers
rand(2, 3, min = 100, max = 200)
Run the code above in your browser using DataLab