Documentation
¶
Index ¶
- func MutateSelection(input string, sentinel string, seed int64, iters int) (string, string, error)
- func MutateSelectionASCII(input string, sentinel string, seed int64, iters int) (string, error)
- func MutateString(input string, seed int64, iters int) (string, error)
- func MutateStringASCII(input string, seed int64, iters int) (string, error)
- func RandomInt(limit int, seed int64) (int, error)
- func RandomString(length int, seed int64, iters int) (string, error)
- func RandomStringASCII(length int, seed int64, iters int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateSelection ¶
MutateSelection takes an input, sentinel (both strings), a seed (int64), and a number of iterations. It then mutates the string, and returns the input with the selection (between sentinels) mutated.
func MutateSelectionASCII ¶
MutateSelectionASCII takes an input, sentinel (both strings), a seed (int64), and a number of iterations. It then mutates the string, and returns the input with the selection (between sentinels) mutated in the ASCII range.
func MutateString ¶
MutateString takes a string and a seed for a random number generator. Then, it randomly mutates a string and returns it
func MutateStringASCII ¶
MutateStringASCII takes a string, a seed for a random number generator, and a number of iterations, and mutates a string, returning an ascii string
func RandomString ¶
RandomString takes a length as an int, a seed (int64) and a number of iterations. Then, it generates a random string of length "length"
Types ¶
This section is empty.