summaryrefslogtreecommitdiff
path: root/src/core/random_func.hpp
AgeCommit message (Collapse)Author
2019-01-13Fix: Grammar in a bunch of comments (#7054)nikolas
2013-10-20(svn r25893) -Fix: Document RandomRange and change misleading parameter name ↵fonsinchen
'max' in random functions.
2012-12-01(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from ↵alberth
various sources (including Eagle_rainbow, MinchinWeb)
2012-01-26(svn r23854) -Codechange: make it easier to put random debug stuff into the ↵rubidium
random log
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-01-22(svn r21886) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updated [n].
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-04-17(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so ↵frosch
generally extent it to handle 32 bits.
2010-04-16(svn r19643) -Fix (r19120): Industry generation failed for large maps and ↵frosch
lots of industry types.
2010-02-14(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed ↵rubidium
compiling (planetmaker)
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-05-14(svn r16305) -Codechange: force-enable extra sync checking when random ↵rubidium
debugging is enable and give the calling location of Chance16(R) instead of the Random call within those functions.
2009-04-25(svn r16148) -Fix [FS#2839]: misleading comment (part by Bilbo)smatz
2009-04-09(svn r16006) -Fix (r0): Chance16() did not work for b = 1. Also transform ↵frosch
the formula to not use divisions.
2008-08-16(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the ↵frosch
autoreplace kernel.
2008-06-22(svn r13607) -Fix (r13606): some coding style issues got fixed but some ↵skidd13
got/stayed broken
2008-06-22(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default ↵skidd13
for core functions (big functions use just inline instead)
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-03-31(svn r12516) -Revert r2583: Removed mersenne PRNG cause it is not used and ↵skidd13
won't be used in the future
2008-02-16(svn r12156) -Fix (r11454): Chance16I was now biased towards zero - round to ↵smatz
nearest now
2008-01-29(svn r12004) -Codechange: refactor the random functions to reduce code ↵rubidium
duplication.
2008-01-18(svn r11914) -Documentation: fix some @file statementglx
2007-12-26(svn r11704) -Codechange: remove another bunch of useless includes.rubidium
2007-12-23(svn r11687) -Codechange: move some defines to a better placeskidd13
2007-11-25(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp ↵skidd13
cause they depend on Random() -Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
2007-11-21(svn r11489) -Fix r11488: Somehow the code was added multiple timesskidd13
2007-11-21(svn r11488) -Codechange: Spilt the random functions out to seperate fileskidd13
-Codechange: Make the mersenne twister more readable -Codechange: Unify the seeding process of random