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.
All 4 RepliesReply to this topic
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.