Anand wrote On 03/09/07 17:27,:
> hi plz tell me how to code a method that will randomly pick boolean
> value 0 or 1
Not possible: The only boolean values are true and false.
If you can modify the requirements a little, though, you
might be able to generate boolean values by using Math.rand()
and a comparison, or by using java.util.Random#nextBoolean().
It's astonishing what you can find in the JavaDoc, once you
take the dreaded step of consulting it.

Signature
Eric.Sosman@sun.com