| 75 | |
| 76 | fun nextGaussian(): Double { |
| 77 | while (bi < 0) |
| 78 | nextDouble(1.0) |
| 79 | |
| 80 | bi = 0 |
| 81 | T = 0.0 |
| 82 | b = source.nextGaussian() |
| 83 | return b |
| 84 | } |
| 85 | |
| 86 | fun nextGaussian(increment: Double): Double { |
| 87 | val i = if (increment > 4) increment % 4 else increment |
| 88 | T += i |
| 89 | while (bi < Math.floor(T)) { |
| 90 | a = b |
nothing calls this directly
no test coverage detected