diff options
Diffstat (limited to 'members.go')
-rw-r--r-- | members.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,12 +7,12 @@ import ( func getRandomMember(team []string, except string) string { rand.Seed(time.Now().Unix()) - ok := false + found := false member := "" - for !ok { + for !found { n := rand.Int() % len(team) member = team[n] - ok = member != except + found = member != except } return member } |