m <- runif(60000) mm <- matrix(m, ncol=6) HTH
Dave On Thu, Jul 31, 2008 at 6:24 PM, Max <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I did a quick search of the list and it looks like this may not have been > asked before... I'm trying to generate a matrix of random numbers between 0 > and 1, with 6 columns, 10000 rows. About all I know is that runif(1) gives > me the random number I'm looking for. > > Any help would be great! > > thanks, > > -Max > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- David Barron Said Business School Park End Street Oxford OX1 1HP 01865 288906 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.