Physics307L:Schedule/Week 10 agenda/Random numbers

See Bevington 2nd ed., pages 81-83

 * 1) Generate uniformly distributed random number from 0 to 1
 * 2) Lookup or compute this value in the cumulative distribution function, find corresponding "x"
 * 3) * This x value will be distributed according to p(x)

Excel example from today

 * [[Image:Weighted mean and random.xlsx]] (This is the Excel 2007 version)
 * [[Image:Weighted mean and random.xls]] (This is the Excell 2003 version)