Returns the next pseudorandom, uniformly distributed {@code boolean} value from this random number generator'ssequence. The general contract of {@code nextBoolean} is that one{@code boolean} value is pseudorandomly generated and returned. Thevalues {@code true} and {@code false} are produced with(approximately) equal probability.
The method {@code nextBoolean} is implemented by class {@code Random}as if by:
{@code}public boolean nextBoolean() return next(1) != 0; }}
@return the next pseudorandom, uniformly distributed{@code boolean} value from this random number generator'ssequence
@since 1.2