How about something like: n <- 100 x <- sign(runif(n) - 0.5) * rexp(n)
?? Andy > From: Yao, Minghua > > All, > > Could anybody please tell me how to generate Laplacian > distributed random numbers? Thanks. > > Minghua ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
