This commit is contained in:
Mau Di Bert 2019-01-21 10:05:14 -03:00 committed by GitHub
parent f2e27fd449
commit 3ea1e9e20b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ We need to "map" all values from the interval 0..1 into values from `min` to `ma
That can be done in two stages: That can be done in two stages:
1. If we multiply a random number from 0..1 by `max-min`, then it the interval of possible values increases `0..1` to `0..max-min`. 1. If we multiply a random number from 0..1 by `max-min`, then the interval of possible values increases `0..1` to `0..max-min`.
2. Now if we add `min`, the possible interval becomes from `min` to `max`. 2. Now if we add `min`, the possible interval becomes from `min` to `max`.
The function: The function: