CPPForSchool.com: Library Function Set 1: Assignment 4

4. Write a program which display a number between 10 to 100 randomly.


My approach for this assignment is to utilize the rand and time functions in order to truly build a random number generator.  Unfortunately, using rand by itself will always result in the same number.  However, when coupled with the time function, it will have a randomized output.  The libraries used for this assignment were iostream, cstdlib.h, and time.h.










Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8