type math/rand.Rand
28 uses
math/rand (current package)
exp.go#L30: func (r *Rand) ExpFloat64() float64 {
normal.go#L37: func (r *Rand) NormFloat64() float64 {
rand.go#L62: type Rand struct {
rand.go#L78: func New(src Source) *Rand {
rand.go#L80: return &Rand{src: src, s64: s64}
rand.go#L85: func (r *Rand) Seed(seed int64) {
rand.go#L96: func (r *Rand) Int63() int64 { return r.src.Int63() }
rand.go#L99: func (r *Rand) Uint32() uint32 { return uint32(r.Int63() >> 31) }
rand.go#L102: func (r *Rand) Uint64() uint64 {
rand.go#L110: func (r *Rand) Int31() int32 { return int32(r.Int63() >> 32) }
rand.go#L113: func (r *Rand) Int() int {
rand.go#L120: func (r *Rand) Int63n(n int64) int64 {
rand.go#L137: func (r *Rand) Int31n(n int32) int32 {
rand.go#L161: func (r *Rand) int31n(n int32) int32 {
rand.go#L178: func (r *Rand) Intn(n int) int {
rand.go#L189: func (r *Rand) Float64() float64 {
rand.go#L215: func (r *Rand) Float32() float32 {
rand.go#L229: func (r *Rand) Perm(n int) []int {
rand.go#L247: func (r *Rand) Shuffle(n int, swap func(i, j int)) {
rand.go#L272: func (r *Rand) Read(p []byte) (n int, err error) {
rand.go#L312: var globalRandGenerator atomic.Pointer[Rand]
rand.go#L318: func globalRand() *Rand {
rand.go#L324: var r *Rand
rand.go#L330: r = &Rand{
zipf.go#L16: r *Rand
zipf.go#L39: func NewZipf(r *Rand, s float64, v float64, imax uint64) *Zipf {
math/big
int.go#L886: func (z *Int) Rand(rnd *rand.Rand, n *Int) *Int {
nat.go#L910: func (z nat) random(rand *rand.Rand, limit nat, n int) nat {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |