#************************************************************* # Example script to generate uniform random variables # and write these to a csv file. # # Nigel De Silva - nigeldesilva@hotmail.com # 17 Feb 2006 #************************************************************* # Create 100,000 uniform random variables x <- runif(100000) # Output to a csv file (in current working directory) write.csv(x, "Uniform Random Variables.csv") #************************************************************* # Many alternative distributions are available. # For example, the first line of code could be replaced by: # x <- rweibull(1e5, shape=10, scale=100) # Weibull #*************************************************************