code: function randBigInt(n, s) {
    var a, b;
    a=Math.floor((n-1)/bpe)+2; //# array elements to hold the BigInt with a leading 0 element
    b=int2bigInt(0, 0, a);
    randBigInt_(b, n, s);
    return b;
  }
docs: Return an n-bit random BigInt (n>=1).  If s=1, then the most significant of those n bits is set to 1.