mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
alignment
This commit is contained in:
1 parent
e0eaa450ee
commit
15479288cc
11 files changed
+796
-2122
No files matched your search
@@ -11,7 +11,7 @@ public static class IntArrayGenerator
|
||||
|
||||
|
||||
|
||||
private static readonly Random rng = new Random(24241564);
|
||||
private static Random rng = new Random(24241564);
|
||||
|
||||
/// <summary>
|
||||
/// Generate an array composed of ascending runs (consecutive integers).
|
||||
@@ -23,6 +23,9 @@ public static class IntArrayGenerator
|
||||
/// - allowNegative: if false, generated values will be non-negative
|
||||
/// - minGap / maxGap: approximate gap between runs (large gaps produce the jump examples)
|
||||
/// </summary>
|
||||
///
|
||||
public static void InitRng() => rng = new Random(24241564);
|
||||
|
||||
public static long[] GenerateRuns(int length,
|
||||
int minRunSize = 3,
|
||||
int maxRunSize = 8,
|
||||
|
||||
Reference in new issue
Block a user