Categories
BLOG

lottery ball simulator

Powerball lottery Simulator

This is my first program I wrote without any help, other than my notes I have on programming. I plan on adding to this code but I thought maybe you guys can help me format my code to be easy for other programmers to read. I decided to make a program that simulates the Powerball lottery. I was able to make the program work and I have continuously added to it to make it easy for a user to understand whats going on in the program. My questions are simple ones that expert programmers can answer. 1st run my program and let me know if the introduction menu can be improved layout wise. 2nd I decided to add a lot of comments because I figured I needed to get into the habit of writing comments so when I get into the industry they can help other programmers understand my logic. If you read my comments in the program let me know if they are easy to understand the flow of whats occurring. Like I mentioned earlier this program works fine I just need tips on how to organize my comments and maybe let me know if I could have used better user-defined variable names or function names more relevant to the program.

**update**
I initially wrote this program on a mac os x using xcode. I tried to run it on windows 7 minwig but it failed to run i think its because of my array not having a constant variable. Any suggestions?

Powerball lottery Simulator This is my first program I wrote without any help, other than my notes I have on programming. I plan on adding to this code but I thought maybe you guys can help me

True Random Number Service

RANDOM.ORG Uses Cookies

We use cookies to remember your preferences and to analyze our traffic. We do not carry ads and will never sell your data to third parties.

Necessary Preferences Statistics

Please see our Cookie Policy or visit our Privacy Dashboard for more information.

Allow Selected Allow All

Lottery Quick Pick

This form allows you to quick pick lottery tickets. The randomness comes from atmospheric noise, which for many purposes is better than the pseudo-random number algorithms typically used in computer programs.

This page allows you to quick pick lottery tickets using true randomness, which for many purposes is better than the pseudo-random number algorithms typically used in computer programs. ]]>