* Returns a sample from a uniform [a, b] distribution. * Uses the seedrandom library as the random generator.
(a: number, b: number)
| 211 | * Uses the seedrandom library as the random generator. |
| 212 | */ |
| 213 | function randUniform(a: number, b: number) { |
| 214 | return Math.random() * (b - a) + a; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Samples from a normal distribution. Uses the seedrandom library as the |
no outgoing calls
no test coverage detected
searching dependent graphs…