GWT Random uses the browser's underlying JavaScript math library to
generate random numbers:
public static native int nextInt(int upperBound) /*-{
// ~~ forces the value to a 32 bit integer.
return ~~(Math.floor(Math.random() * upperBound));
}-*/;
I ran a quick test of this code in
);
}-*/;
This code on Google Chrome (at least 4.0.249.43 for Mac) does indeed
generate only even numbers.
On Dec 17, 9:20 am, Brandon Tilley codemaster...@gmail.com wrote:
GWT Random uses the browser's underlying JavaScript math library to
generate random numbers:
public static native int nextInt(int
Submitted issue #4372 (http://code.google.com/p/google-web-toolkit/
issues/detail?id=4372) for this problem.
On Dec 17, 1:13 pm, hemodroid hemodr...@gmail.com wrote:
No problem :)
On 17 déc, 18:23, Brandon Tilley codemaster...@gmail.com wrote:
I apologize, hemodroid, upon further research I
I agree with Thomas, this sounds just like something that could be
handled with a DeferredCommand. See
http://stackoverflow.com/questions/691684/gxt-keylistener-componentkeydown-immediately-closes-messagebox-alert
(the post is GXT-related but the general idea is the same).
On Nov 9, 2:49 am,
GWT on the client side is just HTML and JavaScript, not magic. :-)
If you can't do it with HTML and JavaScript, you can't do it with GWT.
On Oct 28, 9:47 am, Rinku ashishkushwaha1...@gmail.com wrote:
Thanks for your reply Kris and DaveS.
But I have requiement to provide my own mimimize and