C++ program to generate random numbers
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Generate random numbers example in C++
Output
If you do not use randomize(), numbers will be generated randomly but when you again run the program same output will come.
the output after removing randomize () :
Note: always use randomize (), if you want to get random numbers at every run.
In this program, we used # just after about yourself information, because in the program we are using delimiter (#) to terminate string because about yourself section may contain more than one lines, so we have to need a special delimiter to terminate reading.
need an explanation for this answer? contact us directly to get an explanation for this answer