Generating Random Strings

Report a typo

You are now working on a project that generates a password. You have already written the following function

func main() {
	rand.Seed(time.Now().UnixNano())
	length := 4 + rand.Intn(5)

	randomUpperCaseString := make([]byte, length)
	for i := 0; i < length; i++ {
		randomUpperCaseString[i] = byte(65 + rand.Intn(58))
	}

	password := string(randomUpperCaseString)
	fmt.Println(password)	
}

Select all the statements that are true for the output of the password

Select one or more options from the list
___

Create a free account to access the full topic