Package jsonvalues.gen
Class JsBigIntGen
- java.lang.Object
-
- jsonvalues.gen.JsBigIntGen
-
public final class JsBigIntGen extends Object implements fun.gen.Gen<JsBigInt>
Represents a JsBigInt generator. It can be created using the static factory methodsbiasedandarbitraryor, 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<JsBigInt>apply(Random seed)Returns a supplier from the specified seed that generates a new JsBigInt each time it's calledstatic fun.gen.Gen<JsBigInt>arbitrary(int bits)static fun.gen.Gen<JsBigInt>biased(int bits)
-