I am having trouble with hitting all my bricks. I'm done with all 10 steps in the pset but when I get to hitting the last 3 - 5 or so bricks, my ball doesn't have enough "randomness" to hit them. My x velocity is set to drand48 * 4 - 2 and my y velocity is set to drand 48 with an if statement setting my y velocity to -4.0 if it's greater than .5 and to 2.0 if it's less than .5. I've tried multiple other drand48 setting and the one I describe here is the only one that works to the point hitting almost all the bricks.
Any hints? Much appreciated! Cant wait to finish this and move on to pset 5.