big.NewInt(int64(unsafe.Sizeof(char))))
also this line will will define the maximum of the random number which is 4. so all the random runes are 0 <= r <= 4 which are all not graphic.

is this more what you expect https://play.golang.org/p/61hzuNj1nF

it uses append instead of the decrementing i and math/rand instead of crypto/rand

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to