3.3.3: rand() example prints same sequence of numbers
Closed this issue · 1 comments
alexeikm commented
I suggest setting rand()
's seed to the system time, as the answers in this page suggest, with an accompanying explanation for why this is needed.
While we're at it, I suggest covering else if
statements in section 3.3.1 :)
beejjorgensen commented
Good call. I've checked in some clarifications for srand()
.
On else
and else if
, did I just forget to put those in? 😊 Adding now.
Cheers!