Simple Password Generator

Report a typo

Let's create a simple Password Generator that consists of 4 symbols: an uppercase letter, a lowercase letter, a number, and a special character.

The input is the Seed number, and the output is the string in the form of UpperLowerNumberCharacter, for example "Bd3$".

Sample Input 1:

1

Sample Output 1:

Xv7#
Write a program in Go
package main

import (
"fmt"
"math/rand"
)

func main() {
upperCase := "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowerCase := "abcdefghijklmnopqrstuvwxyz"
number := "0123456789"
specialSymbol := "!?$&%#"

var seed int64
fmt.Scanln(&seed)
rand.Seed(seed)

// put your code here

}
___

Create a free account to access the full topic