package main import ( "fmt" "math/rand" "time" ) func main() { rand.Seed(time.Now().UnixNano()) // Set a new seed based on the current time fmt.Println("Random number between 0 and 4:", rand.Intn(5)) // Generate a random integer between 0 and 4 fmt.Println("Random number between 0 and 99:", rand.Intn(100)) // Generate a random integer between 0 and 99 }In this example, we first set a new seed for the random number generator based on the current time. Then we use `rand.Intn` to generate a random integer between 0 and 4, and between 0 and 99 respectively. The package library `math/rand`.