Difference between revisions of "Talk:GetRandomPercent"

174 bytes added ,  22:33, 13 August 2008
clarifying ian's comment
imported>DragoonWraith
(cleaned up page)
imported>Scruggs
(clarifying ian's comment)
Line 111: Line 111:
add    edi, eax</pre>
add    edi, eax</pre>
From Ian Patterson "That function is a wrapper around MS' stdlib rand that calls srand(time(NULL)) if it hasn't been seeded yet. It only uses the system timer once. The rest of the code is just some modular arithmetic done in fixed point."--[[User:Haama|Haama]] 13:42, 25 May 2008 (EDT)
From Ian Patterson "That function is a wrapper around MS' stdlib rand that calls srand(time(NULL)) if it hasn't been seeded yet. It only uses the system timer once. The rest of the code is just some modular arithmetic done in fixed point."--[[User:Haama|Haama]] 13:42, 25 May 2008 (EDT)
: Should add that Ian's point was, GetRandomPercent is not especially random. Use [[rand]] instead if that is important. [[User:Scruggs|Scruggs]] 23:33, 13 August 2008 (EDT)
Anonymous user