How do I continously randomize values within code???
I camt quite explain this but, I used to do this by using classes and recall each class to randomize the values, But it isn't working.. https://code.sololearn.com/c1ABwQY4x2G6/?ref=app
You can do it similar to this example: https://code.sololearn.com/cjqnVOICZkkg/?ref=app
This is what I think you want https://code.sololearn.com/c877hX5WXvWj
Thank you Soloprog
The rand function has several problems and modern c++ codes should be using it. There's a random-number library, defined in the random header, implemented two classes 1. Random number engine 2. Random number distribution that generates a sequence of unsigned random numbers, in a given range, distributed according to a particular probability distribution. https://code.sololearn.com/cB34wn9peSJh/?ref=app
Can you please do it with a class Recall class to change value overtime??? I was able to do it with a dodging puncher game, but I forgot.
Shapa I have updated the code to use class, make sure you are passing a reference to the random engine
Can you do a string array please??? look at my code and run it
Shapa I have modified the code to exactly what you provided
Indeed Soloprog.....now Try do it without the constructor🤟🔥🔥🔥
Without the constructor https://code.sololearn.com/cNlP4grfWpis