()
| 493 | } |
| 494 | |
| 495 | func (s normalRandomJobLoad) Load() float32 { |
| 496 | u := 1 - s.rng() |
| 497 | v := s.rng() |
| 498 | z := math.Sqrt(-2*math.Log(u)) * math.Cos(2*math.Pi*v) |
| 499 | return float32(max(0, z*s.stddev+s.mean)) |
| 500 | } |
nothing calls this directly
no outgoing calls
no test coverage detected