Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for randFloat32 (0.14 sec)

  1. src/testing/quick/quick.go

    	switch concrete := t; concrete.Kind() {
    	case reflect.Bool:
    		v.SetBool(rand.Int()&1 == 0)
    	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:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top