random number is always 1 for me. Without knowing anything about go, I'd have kinda expected some...
Closed this issue · 2 comments
GoogleCodeExporter commented
https://feedback.corp.google.com/#/Report/1128291826
Description:
random number is always 1 for me. Without knowing anything about go, I'd have
kinda expected something between 1 and 10?
UI language: en
Detected language: en
Original issue reported on code.google.com by feedback...@gmail.com
on 16 Aug 2013 at 12:43
GoogleCodeExporter commented
I think the playground has been updated to include an explanation for this
behavior:
http://tour.golang.org/#4
"Note: the environment in which these programs are executed is deterministic,
so rand.Intn will always return the same number.
(To see a different number, seed the number generator; see rand.Seed.)"
Original comment by fresh.gr...@gmail.com
on 4 Jul 2014 at 6:25
GoogleCodeExporter commented
Original comment by a...@golang.org
on 6 Jul 2014 at 9:01
- Changed state: Invalid