Debian Codegraph @

stdlib/go1_22_math_rand_v2.go

raw symbols SCIP
1 // Code generated by 'yaegi extract math/rand/v2'. DO NOT EDIT.
2
3 //go:build go1.22
4 // +build go1.22
5
6 package stdlib
7
8 import (
9 "math/rand/v2"
10 "reflect"
11 )
12
13 func init() {
14 Symbols["math/rand/v2/rand"] = map[string]reflect.Value{
15 // function, constant and variable definitions
16 "ExpFloat64": reflect.ValueOf(rand.ExpFloat64),
17 "Float32": reflect.ValueOf(rand.Float32),
18 "Float64": reflect.ValueOf(rand.Float64),
19 "Int": reflect.ValueOf(rand.Int),
20 "Int32": reflect.ValueOf(rand.Int32),
21 "Int32N": reflect.ValueOf(rand.Int32N),
22 "Int64": reflect.ValueOf(rand.Int64),
23 "Int64N": reflect.ValueOf(rand.Int64N),
24 "IntN": reflect.ValueOf(rand.IntN),
25 "New": reflect.ValueOf(rand.New),
26 "NewChaCha8": reflect.ValueOf(rand.NewChaCha8),
27 "NewPCG": reflect.ValueOf(rand.NewPCG),
28 "NewZipf": reflect.ValueOf(rand.NewZipf),
29 "NormFloat64": reflect.ValueOf(rand.NormFloat64),
30 "Perm": reflect.ValueOf(rand.Perm),
31 "Shuffle": reflect.ValueOf(rand.Shuffle),
32 "Uint32": reflect.ValueOf(rand.Uint32),
33 "Uint32N": reflect.ValueOf(rand.Uint32N),
34 "Uint64": reflect.ValueOf(rand.Uint64),
35 "Uint64N": reflect.ValueOf(rand.Uint64N),
36 "UintN": reflect.ValueOf(rand.UintN),
37
38 // type definitions
39 "ChaCha8": reflect.ValueOf((*rand.ChaCha8)(nil)),
40 "PCG": reflect.ValueOf((*rand.PCG)(nil)),
41 "Rand": reflect.ValueOf((*rand.Rand)(nil)),
42 "Source": reflect.ValueOf((*rand.Source)(nil)),
43 "Zipf": reflect.ValueOf((*rand.Zipf)(nil)),
44
45 // interface wrapper definitions
46 "_Source": reflect.ValueOf((*_math_rand_v2_Source)(nil)),
47 }
48 }
49
50 // _math_rand_v2_Source is an interface wrapper for Source type
51 type _math_rand_v2_Source struct {
52 IValue interface{}
53 WUint64 func() uint64
54 }
55
56 func (W _math_rand_v2_Source) Uint64() uint64 { return W.WUint64() }