You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I have been playing about drawing fractals in GWT using canvas and the
¨ chaos game¨ method.
However when picking large amounts of random numbers I seem to be
getting a bias. That is, the randomness doesn't seem evenly
distributed.
I have read many sources online that say that Javas normal
Math.Random() is flawed for this stuff, and some alternatives are
offered. However as GWTś Math.Random is merely an emulation, I
wondered if it suffered the same flaws or not.
Does anyone use alternative methods?
This is all rather new too me, so if anyone has any pointers it would
be helpfull.
Kevin Jordan
unread,
Jan 11, 2012, 8:19:33 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
All GWT's emulation does is natively call the javascript
Math.random().
Chi Hoang
unread,
Jan 11, 2012, 9:21:13 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
java.lang.Math.random() calls the native javascript Math.random().
However, java.util.Random implements the random number algorithm
specified in the spec for that class - you can try using that if
java.lang.Math.random() is not random enough
Jim Douglas
unread,
Jan 11, 2012, 11:53:19 AM1/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message