Last active
December 18, 2020 06:09
-
-
Save ysmood/627ae2851bde609813d98282b0d578e9 to your computer and use it in GitHub Desktop.
Copy the names then run it, it will output to your clipboard, names should be separated by commas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math/rand" | |
"strings" | |
"github.com/atotto/clipboard" | |
) | |
func main() { | |
input, _ := clipboard.ReadAll() | |
list := strings.Split(input, ",") | |
rand.Shuffle(len(list), func(i, j int) { list[i], list[j] = list[j], list[i] }) | |
_ = clipboard.WriteAll(strings.Join(list, "\n")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment