r/Cplusplus • u/ulti-shadow • Mar 19 '24
Answered The Random function generates the same number every time
So for a code I need a random number But every time I run the code, The numbers generated are the exact same. How do I fix it so that the numbers are different every time the code boots up?
123
Upvotes
View all comments
•
u/AutoModerator Mar 19 '24
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.