# BigInteger in Java and Randomness

I'm looking for some PRNGs and as I have been using Java for a long period of time I thought that the BitInteger class together with the Random class could both generate some large pseudo random numbers. Are the algorithms behind those generations cryptographically secure? Or is it just some sort of a + (b - c) mod d or similiar operation.

-
Exactly what algorithms are you considering in the phrase of the question ending in a question mark? –  fgrieu Mar 24 '12 at 9:01
Just use the SecureRandom class. –  CodesInChaos Mar 24 '12 at 9:49
I was considering the algorithms behind the Random and BigInteger class. –  vlad Mar 30 '12 at 11:18
@vlad you were considering wrong :) –  owlstead Apr 5 '12 at 1:27