Isn&#x27;t this the wrong problem?  It lets you enter X dollars, then it simulates if you played $1 on X numbers of sequential drawings... which would have terrible odds.
Wouldn&#x27;t it be better to simulate X numbers on Y draws, which would lead you to know the number of times&#x2F;people would have to play to win.<p>I don&#x27;t think probability is communicative, is it?<p>EDIT: It would also be neat to simulate the number of winners you would have to share the prize with, based on numbers entered in the form from users.