Skip to content

Commit 660314a

Browse files
fix(dataset_generator): Adjust random dataset generation to use full range of values
1 parent 4a239f2 commit 660314a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/collection/benchmark/dataset_generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final List<List<int>> pathological = _generatePathological();
2121
List<List<int>> _generateRandom() {
2222
final r = Random(12345);
2323
return List.generate(
24-
count, (_) => List.generate(size, (_) => r.nextInt(2000)));
24+
count, (_) => List.generate(size, (_) => r.nextInt(size)));
2525
}
2626

2727
List<List<int>> _generateSorted() {

0 commit comments

Comments
 (0)