Hey guys, I'm new to C++ and in desperate need of help. I'm trying to write a program that is like powerball. I need to generate six random numbers. The first five numbers need to be in the range of 1-55 while the sixth number is in the range of 1-42. The program needs no input from the user and should generate random numbers in those ranges everytime on startup. Also, the header which is just "Powerball", and all six identical random numbers need to be written to text file named "Powerball.txt which should be located in the solution folder of the Visual Studios Project. I'm new to both random numbers and input/outfile and I just can't seem to figure it out. Any help is well appreciated as I need to complete this asap. Thank you.
Benbon86
0
Newbie Poster
Recommended Answers
Jump to PostIf you read the sticky posts in this forum, you'll see we don't do your work for you. Please show the work you've done so far, and then we'll help point you in the right direction.
All 4 Replies
vmanes
1,165
Posting Virtuoso
Benbon86
0
Newbie Poster
unbeatable0
32
Junior Poster in Training
Benbon86
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.