Check out the numbers_test.go might help you with idea's for your rand test.
also, in the seed.go file the init() func will be run when the package is imported by another, package. So we don't need to set the seed at every function call. Calling rand.Seed() in every function call is actually not a good practice, as it could make our rand values more predicable.
Check out the
numbers_test.go
might help you with idea's for your rand test.also, in the
seed.go
file theinit()
func will be run when the package is imported by another, package. So we don't need to set the seed at every function call. Callingrand.Seed()
in every function call is actually not a good practice, as it could make our rand values more predicable.