+ 1

Where am i going wrong

Trying to use srand(time(0)) and rand() to generate random values for the default on an equation to keasure the volume of a cube commented out is the code from the lesson that teaches srand https://code.sololearn.com/cOwPB57rAOVS/?ref=app

8th Apr 2020, 3:42 AM
Joshua Flynn
Joshua Flynn - avatar
2 Answers
+ 2
What's the problem though? You just need to put the code in the main function and it works: https://code.sololearn.com/c2EIimBijhty/?ref=app
8th Apr 2020, 7:49 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 2
thank you Aaron
8th Apr 2020, 12:27 PM
Joshua Flynn
Joshua Flynn - avatar