/** * @return a random BIG in 0, ..., GROUP_ORDER-1 */ public static BIG RandModOrder(this RAND rng) { BIG q = new BIG(ROM.CURVE_Order); // Takes random element in this Zq. return(BIG.RandomNum(q, rng)); }