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.
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
Post a Comment