lab.rand(x)
y=lab.rand(n) returns a one-dimensional tensor of size n filled with random numbers from a uniform distribution on the interval (0,1).
y=lab.rand(n)
y=lab.rand(m,n) returns a mxn tensor of random numbers from a uniform distribution on the interval (0,1).
y=lab.rand(m,n)