summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make types and bounds in random2 a bit more explicit.Robert Vollmert2009-11-101-5/+7
|
* Fix compile (stdint.h needed for uint*_t).Darshan Shaligram2009-11-091-0/+1
|
* Remove the bias from random2()Stefan O'Rear2009-11-081-1/+10
| | | | | Worst case for the old version was random2(65535) == 65534, which had a 1 in 2^30 chance of being true.
* Fix a stupid bug in defer_rand::random2avgStefan O'Rear2009-11-081-2/+2
|
* A nifty new abstraction for the RNG: defer_randStefan O'Rear2009-11-081-0/+76
| | | | | | A defer_rand object stores random numbers in a resolution-independant fashion, providing interesting monotonicity guarantees. See the next patch for a good use.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+263
New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.