2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-29 06:48:41 +00:00

alignment

This commit is contained in:
2026-04-09 14:03:04 +03:00
parent e0eaa450ee
commit 15479288cc
11 changed files with 796 additions and 2122 deletions
@@ -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,