URL:
<http://gna.org/bugs/?18996>
Summary: RANDOM apparently not using full .. range
Project: Battle for Wesnoth
Submitted by: simon_smith
Submitted on: Sat Nov 12 21:09:52 2011
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.10
Operating System: Mac OS 10.5.8
_______________________________________________________
Details:
I wanted to create some unique object ids. My approach was to define a macro
called UNIQUE as follows
#define UNIQUE VAR
{RANDOM 100000..999999}
{VARIABLE {VAR} $random|}
#enddef
Then call it with code such as
{UNIQUE unique1}
{RANDOM red,lightred,darkred,blue}
[object]
id=$random|_object_$unique1|
...
What I'm seeing is that over many samples I have never yet got an object id
higher than 140000 even though I presume I should see ids up to 999999.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18996>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs