- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for randFloat64 (0.12 sec)
-
src/testing/quick/quick.go
case reflect.Float32: v.SetFloat(float64(randFloat32(rand))) case reflect.Float64: v.SetFloat(randFloat64(rand)) case reflect.Complex64: v.SetComplex(complex(float64(randFloat32(rand)), float64(randFloat32(rand)))) case reflect.Complex128: v.SetComplex(complex(randFloat64(rand), randFloat64(rand))) case reflect.Int16: v.SetInt(randInt64(rand)) case reflect.Int32: v.SetInt(randInt64(rand))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0) -
src/runtime/mgcscavenge_test.go
return } // Use a random source, but make it deterministic. rs := rand.New(rand.NewSource(800)) randFloat64 := func() float64 { return math.Float64frombits(rs.Uint64()) } p := NewPIController(kp, ti, tt, min, max) state := float64(0) for i := 0; i < 100; i++ { input := randFloat64() // Ignore the "ok" parameter. We're just trying to break it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0)