Originally posted by shana07
longs; for larger numbers the nextLong() method is obviously of no use.
Have a look at the constructor BigInteger(Stri ng val, int radix) and think
of the nextBoolean() method in the Random class: i.e. generate each bit one
by one, stick them in a String and let the BigInteger constructor do the dirty job.
kind regards,
Jos
ps. this is as far as I go because the entire assignment is no fun anymore after
this last reply.
Comment