How to make Projectile bounce sometimes but not all the time

Something like this?