fox/xrand/rand_test.go

21 lines
242 B
Go
Raw Permalink Normal View History

2025-05-25 20:02:15 +08:00
package xrand
import "testing"
func TestShuffle(t *testing.T) {
a := []int{1, 2, 3}
Shuffle(a)
t.Log(a)
}
2025-06-07 12:13:12 +08:00
func TestClean(t *testing.T) {
_ = t
2025-06-08 17:59:35 +08:00
_ = Rand[int]
_ = RandN[int]
_ = RandRange[int]
2025-06-07 12:13:12 +08:00
_ = Perm
_ = Read
_ = RandomString
}