Hey everyone, I am stuck on the last function of my problem, could someone help me get started by helping me on the first part of function?

Question:
I need to write a random function to get 2 numbers from 1-6, and needs to be in a loop 25 times or until both numbers are 6

Thanks For Any Help.

To get a random number between 1 and 6: int num = 1+ (rand() % 6) . The rest of that function you should be able to do yourself.

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.