I'd like to gradually integrate FsCheck in my C# test code (as first step).
I'd like to randomly generate part of my input data.
This is how I generate a random string:
static string RandomString() {
var kgen = Gen.Constant(Gen.Sized(g => Gen.OneOf(Arb.Generate())));
var sgen = Gen.Sample(1, 10, kgen).First();
var str = Gen.Eval(10, Random.StdGen.NewStdGen(0, 1000), sgen);
return str;
}
If I call it multiple times, I get each time the same string.
How can I get a different string each time and/or correctly writing this code?