fix: Splat_random Macro not so random

This commit is contained in:
Wouter van Oijen 2006-07-24 20:27:29 +00:00
parent f420103b2e
commit 4e2e5e8c78
4 changed files with 27 additions and 18 deletions

View file

@ -35,6 +35,8 @@
line, which fixed a problem with the WRE monitor, and also enabled us to
add more complete connectivity testing.
- fix: Templates XHTML compliance (Wouter van Oijen / ProcoliX)
- fix: Splat_random Macro not so random (Wouter van Oijen / ProcoliX) (Thanks
to Colin Kuskie for pointing this out and writing some tests)
7.0.2

View file

@ -8,6 +8,18 @@ versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief.
7.0.3
--------------------------------------------------------------------
* Numbers generated by the Splat_random macro were not evenly
distributed. It returned numbers between 0 and 'max' (inclusive)
with this two numbers occuring about half as much as other numbers.
This is now fixed, so it will return numbers between 0 and 'max-1'
(inclusive), with an equal probability of any of these numbers.
If you're using this macro, you might need to increment the max
parameter.
7.0.2
--------------------------------------------------------------------