|
|
|
|
|
by leshow
1366 days ago
|
|
Doesn't that not work because `nums` is all initialized to 0 though? Like, wouldn't it be for (int num : nums) {
num = rng();
}
(I don't know any c++). I kind of expect the above not to work though because it's doing an assignment. I suppose this is a good argument to just use a `fill` or `generate` function... |
|