Skip to content

repl.go:4:1: package rand "math/rand" has no symbol Shuffle #154

@dfang

Description

@dfang
import "fmt"
import "strings"
import "math"
import "math/rand"

words := strings.Fields("ink runs from the corners of my mouth")
rand.Shuffle(len(words), func(i, j int) {
    words[i], words[j] = words[j], words[i]
})
fmt.Println(words)

returns repl.go:4:1: package rand "math/rand" has no symbol Shuffle

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions