need to extract the random characters from string
here is what i got:
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
b := make([]byte, 1)
for i := range b {
b[i] = letterBytes[rand.Intn(len(letterBytes))]
}
fmt.Println(string(b))
but it always returns "X" but, i need to return every time new character using rand function. any help would be really appreciated. Thanks.