func BoolP(p float32) bool {
	return rand.Float32() < p
}
BoolP is a simple method to generate a true value with given probability
(else false).  is just rand.Float32() < p but this is more readable
and explicit
package erand
import "math/rand"