Qowaiv

System.Random

The Random class can be used to generate pseudo-random data. The generation of the following SVOs is supported:

Sequence

NextSequence() turns any random selector into an unbounded, lazily evaluated sequence:

// Calls Next() an infinite number of times.
foreach (var value in rnd.NextSequence(r => r.Next()))
{
    // ...
}

Values are drawn while enumerating; the sequence never ends, and values may repeat.

International Bank Account Number

// Generates an IBAN for a random supported country.
var iban = rnd.NextInternationalBankAccountNumber();

// Generates an IBAN for the given country.
var iban = rnd.NextInternationalBankAccountNumber(Country.NL);

Burgerservicenummer

var bsn = rnd.NextBurgerservicenummer();

RSIN

var rsin = rnd.NextRsin();

The generated Burgerservicenummer and RSIN values are nine-digit test numbers that satisfy the elfproef. They start with 999, so they can be used as test data without representing a real person or organisation.