• For signed bigint of n bits

    Generated values will be between -2^(n-1) (included) and 2^(n-1) (excluded)

    Parameters

    • n: number

      Maximal number of bits of the generated bigint

    Returns Arbitrary<bigint>

    Please use $bigInt with fc.bigInt({ min: -2n**(n-1n), max: 2n**(n-1n)-1n }) instead

    Since 1.9.0