var T = [ {P:11,G:2}, {P:101,G:7}, {P:1009,G:26}, {P:10007,G:59}, {P:100003,G:242}, {P:1000003,G:568}, {P:10000019,G:1792}, {P:100000007,G:5649}, {P:2147483647,G:16807}, ] // bits 为位数 function RandUnique(bits){ let t = T[bits-1]; if(!t) { throw Error…