First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I have to write. I have to write a program that is basically flash cards on the computer. It will distribute random numbers and ask the user to multiply and enter the product. I have to use 2 for loops (one is nested ) to do this. Can anyone tell me a site where I can find a better explination of rand than my text book has?
Jump to Post
This is from the Borland site:
rand() uses a multiplicative congruential random number generator with period 2 to the 32nd power to return successive pseudorandom numbers in the range from 0 to RAND_MAX. The symbolic constant RAND_MAX is defined in stdlib.h
All 3 Replies
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.