| 1. |
Solve : C++ and rand issue with flexible random integer generator? |
|
Answer» Well I hit an interesting one here. Maybe someone can show me how to resolve this issue. All other TIMES I have ever used rand for random generator in the past its always been predetermined integer ranges such as %10 to have 0 thru 9 unless you +1 to have 1 thru 10. Well I want to SET the range as adjustable based on what A is equal to, and when testing this out I didnt expect an error, I expected it to be happy with it and compile, but from the error message it clearly is not. --------------------Configuration: Formula1 - Win32 Debug--------------------Found my problem.... typo in which A was actually declared in list of Doubles instead of in list of INTs.... All set now! |
|