Using seed number

Report a typo

Suppose we have the following code written using the version of Go 1.20+, what will be the output if we rerun the program several times?

package main
  
import (
	"fmt"
	"math/rand"
)
  
func main() {
	fmt.Println(rand.Intn(10))
}
Select one option from the list
___

Create a free account to access the full topic