randomization

JavaScript - Shuffling Objects inside an object (randomize)

I need to implement a randomization from JSON result. The format of the JSON is two objects: result: Question(object) [Object { id="4c6e9a41470b19_96235904", more...}, Object { id="4c784e6e928868_58699409", more...}, Object { id="4c6ecd074662c5_02703822", more...}, 6 more...] Topic(object) [Object { id="3jhf3533279827_2342...

Randomizing a BigInteger

I'm looking to randomize a BigInteger. The intent is to pick a number from 1 to 8180385048. Though, from what I noticed, the BigInteger(BitLen, Random) does it from n to X2-1, I'd want some unpredictable number. I tried to make a method that would do it, but I keep running into bugs and have finally given in to asking on here. :P Does an...