Random email addresses

Report a typo

Let's suppose you work for a company, and your boss requests you to generate 3 email addresses with five random lowercase letters following the domain name @fantasy.com.

Note: To generate a random string consisting of 5 random lowercase letters you can use ASCII numbers

The input is the Seed number, and the output is three email addresses, for example [email protected] .

Sample Input 1:

1

Sample Output 1:

Write a program in Go
package main

import (
"fmt"
"math/rand"
)

func main() {
var seed int64
fmt.Scanln(&seed)
rand.Seed(seed)

// put your code here

}
___

Create a free account to access the full topic