Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@suzuken
Created August 16, 2016 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuken/b69c7dc570aec9f7f2ee61e48dc4ca9b to your computer and use it in GitHub Desktop.
Save suzuken/b69c7dc570aec9f7f2ee61e48dc4ca9b to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"math/rand"
)
func main() {
list := rand.Perm(23)
for k, i := range list {
fmt.Printf("%d: %d\n", k+1, i+1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment