expand.grid(i=rexp(5,rate=0.1))
It creates just one col but is there some way to multiply this easily to 5 cols? I mean the matlab-way-of-doing-things
You can generate a uniformly distributed 10 by 15 random matrix in the following code line:
matrix(runif(10*15), nrow = 10, ncol = 15)