Skip to content

Commit 67dcfb4

Browse files
committed
fix rand
1 parent 925da05 commit 67dcfb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marathon/rand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct Rand {
3535
return std::uniform_int_distribution<int64_t>{0, std::numeric_limits<int64_t>::max()}(eng);
3636
}
3737

38-
double NextDouble(double lb, double ub) {
38+
double NextDouble(double lb = 0.0, double ub = 1.0) {
3939
return std::uniform_real_distribution<double>{lb, ub}(eng);
4040
}
4141
private:

0 commit comments

Comments
 (0)