There is "setPrintCount" which sets it to a number.
You can make a random number generator using a 10x long plate and spawnProjectile. Spawn a projectile from the plate to hit 10 1x1 brick above it, then use onProjectileHit events for each of these = 1 in 10 chance. If you use other sizes you can alter the percentages.