[LANG-1253][GitHub issue #170] Add RandomUtils#nextBoolean() method.

Closes #170.
This commit is contained in:
Gary Gregory 2016-07-28 22:41:40 -07:00
parent 1d1883f0e2
commit 3899cc6570
2 changed files with 12 additions and 0 deletions

View File

@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<release version="3.5" date="tba" description="tba">
<action issue="LANG-1253" type="add" dev="ggregory" due-to="adilek">[GitHub issue #170] Add RandomUtils#nextBoolean() method</action>
<action issue="LANG-1247" type="update" dev="chas" due-to="Benoit Wiart">FastDatePrinter generates extra Date objects</action>
<action issue="LANG-1018" type="fix" dev="pschumacher" due-to="Nick Manley">Fix precision loss on NumberUtils.createNumber(String)</action>
<action issue="LANG-1229" type="update" dev="pschumacher" due-to="Ruslan Cheremin">HashCodeBuilder.append(Object,Object) is too big to be inlined, which prevents whole builder to be scalarized</action>

View File

@ -47,6 +47,17 @@ public class RandomUtils {
super();
}
/**
* <p>
* Returns a random boolean value
* </p>
*
* @return the random boolean
*/
public static boolean nextBoolean() {
return RANDOM.nextBoolean();
}
/**
* <p>
* Creates an array of random bytes.