mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 22:11:18 +00:00
added a note about random(max: float): float's resolution on windows
This commit is contained in:
@@ -139,7 +139,8 @@ proc random*(max: float): float {.gcsafe.}
|
||||
## returns a random number in the range 0..<max. The sequence of
|
||||
## random number is always the same, unless `randomize` is called
|
||||
## which initializes the random number generator with a "random"
|
||||
## number, i.e. a tickcount. This is currently not supported for windows.
|
||||
## number, i.e. a tickcount. This has a 16-bit resolution on windows
|
||||
## and a 48-bit resolution on other platforms.
|
||||
|
||||
proc randomize*() {.gcsafe.}
|
||||
## initializes the random number generator with a "random"
|
||||
|
||||
Reference in New Issue
Block a user