Java com.google.gwt.user.client Random fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client Random fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client Random.

The text is from its open source code.

Method

booleannextBoolean()
Returns true or false with roughly equal probability.
doublenextDouble()
Returns a random double between 0 (inclusive) and 1 (exclusive).
intnextInt(int upperBound)
Returns a random int between 0 (inclusive) and upperBound (exclusive) with roughly equal probability of returning any particular int in this range.
intnextInt()
Returns a random int between -2147483648 and 2147483647 (inclusive) with roughly equal probability of returning any particular int in this range.