added a note about random(max: float): float's resolution on windows
This commit is contained in:
parent
8a183dac78
commit
d32b4272c3
1 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,8 @@ proc random*(max: float): float {.gcsafe.}
|
||||||
## returns a random number in the range 0..<max. The sequence of
|
## returns a random number in the range 0..<max. The sequence of
|
||||||
## random number is always the same, unless `randomize` is called
|
## random number is always the same, unless `randomize` is called
|
||||||
## which initializes the random number generator with a "random"
|
## 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.}
|
proc randomize*() {.gcsafe.}
|
||||||
## initializes the random number generator with a "random"
|
## initializes the random number generator with a "random"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue