public final class JsBigIntGen extends Object implements fun.gen.Gen<JsBigInt>
biased
and arbitrary
or, if none of the previous suit your
needs, from a big integer generator and the function map:
import fun.gen.Gen;
import jsonvalues.JsBigInt;
Gen<BigInteger> bigIntGen = seed -> () -> {...};
Gen<JsBigInt> jsBigIntGen = gen.map(JsBigInt::of)
Arbitrary generators produces uniformed distributions of values. Biased generators produces, with higher probability, potential problematic values that usually cause more bugs.
Modifier and Type | Method and Description |
---|---|
Supplier<JsBigInt> |
apply(Random seed)
Returns a supplier from the specified seed that generates a new JsBigInt each time it's called
|
static fun.gen.Gen<JsBigInt> |
arbitrary(int bits) |
static fun.gen.Gen<JsBigInt> |
biased(int bits) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2022. All rights reserved.