generate a random number

Generate a random N bit integer (dec or hex)