R Tip: Making a random distribution and then exporting it
I had a need for a text file with a random normal distribution in it today, so I looked around and found this tip from Paul Johnson's R page. table = rnorm(40, .1, .01) # assigns a random normal with 40 elements with mean .1 and SD .01 to table write.table(table,file="table.txt") #exports to a text file
One can never have enough pseudorandom numbers.
Comments ()