You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package rands |
|
|
|
import "math/rand/v2" |
|
|
|
func RandN(n int64, rd ...*rand.Rand) (ret int64) { |
|
crd := rad |
|
if len(rd) > 0 && rd[0] != nil { |
|
crd = rd[0] |
|
} |
|
ret = crd.Int64N(int64(n)) |
|
return |
|
}
|
|
|