Table of Contents

Class BigIntegerGenerator

Namespace
Hegel
Assembly
Hegel.dll

Draws integers of any size, in a range or around ±2^127 when unbounded.

public sealed class BigIntegerGenerator : ValueGenerator<BigInteger>
Inheritance
BigIntegerGenerator
Inherited Members

Properties

Label

The span label the engine files this generator's draws under. Defaults to a label derived from the class's full name.

public override ulong Label { get; }

Property Value

ulong

Methods

DoDraw(TestCase)

Draw one value. Called inside a span labelled Label: draw from another generator through DrawSilent<T>(Generator<T>), which opens its span, rather than by calling its hook.

protected override BigInteger DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

BigInteger

Max(BigInteger)

At most max.

public BigIntegerGenerator Max(BigInteger max)

Parameters

max BigInteger

Returns

BigIntegerGenerator

Min(BigInteger)

At least min.

public BigIntegerGenerator Min(BigInteger min)

Parameters

min BigInteger

Returns

BigIntegerGenerator