MCPcopy
hub / github.com/rclone/rclone / Rand

Struct Rand

backend/union/policy/rand.go:17–19  ·  view source on GitHub ↗

Rand stands for random Calls all and then randomizes. Returns one candidate.

Source from the content-addressed store, hash-verified

15// Rand stands for random
16// Calls all and then randomizes. Returns one candidate.
17type Rand struct {
18 All
19}
20
21func (p *Rand) rand(upstreams []*upstream.Fs) *upstream.Fs {
22 return upstreams[rand.Intn(len(upstreams))]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected