master
Charles Iliya Krempeaux 2015-01-29 01:12:00 -08:00
parent 66e1a305e3
commit f898587a73
1 changed files with 2 additions and 1 deletions

View File

@ -69,8 +69,9 @@ func (arb T) Runes(args ...interface{}) []rune {
// Construct the arbitrary []rune.
arbitrary_runes := make([]rune, num_arbitrary_runes)
l := len(runes)
for i,_ := range arbitrary_runes {
arbitrary_runes[i] = runes[arb.randomness.Intn(num_arbitrary_runes)]
arbitrary_runes[i] = runes[arb.randomness.Intn(l)]
}
// Return.