Added random() method and constants.

Added a method to generate a random BigInteger between 0 and an upper
limit. In addition, added some static constants for convenience.