removed print out
This commit is contained in:
parent
c757efb8f8
commit
13375bd8c2
@ -1,14 +1,10 @@
|
|||||||
package psyfer
|
package psyfer
|
||||||
|
|
||||||
import (
|
import "math/rand"
|
||||||
"fmt"
|
|
||||||
"math/rand"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TransposeRandom(input string) string {
|
func TransposeRandom(input string) string {
|
||||||
shuffle := ""
|
shuffle := ""
|
||||||
list := rand.Perm(len(input))
|
list := rand.Perm(len(input))
|
||||||
fmt.Println(list)
|
|
||||||
for _, i := range list {
|
for _, i := range list {
|
||||||
shuffle += string(input[i])
|
shuffle += string(input[i])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user