Exemple #1
0
func (cp *Cards) Shuffle() {
	for i := 0; i != 20; i++ {
		cp.SortFor(func(c1, c2 *Card) bool {
			return (base.RandUint32() % 5) != 0
		})
	}
}
Exemple #2
0
func RandInt(i int) int {
	return int(base.RandUint32()) % i
}