How to make a percent chance for something to happen

Thanks, I am on my way to building my concept Idea now that I have it working someway. Sure I have some things to iron out but its working now. thank you.