Getting a Projectile to bounce back after hitting a collision box but in a random direction.

Hey thanx for the relply, only just seen it. so i have the function but i dont know where to put it. Do you have an idea