random numbers from user-defined distributions
- To: mathgroup at yoda.physics.unc.edu
- Subject: random numbers from user-defined distributions
- From: msdrl!nachbar at uunet.uu.net (Dr. Robert B. Nachbar)
- Date: Tue, 5 Jan 93 16:49:46 EDT
does anyone know how to use Random with an arbitrary distribution function? i would like to generate random numbers in the range {0, Pi} with a probability distribution function (PDF) of Sin[x]. bob -- Dr. Robert B. Nachbar | Merck Research Laboratories | 908/594-7795 nachbar at msdrl.com | R50S-100 | 908/594-4224 FAX | PO Box 2000 | | Rahway, NJ 07065 |