+ 5

What is the best way to get random numbers in c++ ? I m using turbo c++ compiler

I want random numbers between 1 and 69 (Both numbers included)

3rd Apr 2019, 2:51 AM
Saksham Narula
Saksham Narula - avatar
7 Answers
+ 6
Saksham Narula I am wondering how did you manage to install 30 years old compiler into current PC now? 🤔🧐 Please use current latest C++ compilers, suggested by Serena Yvonne pleasee..
3rd Apr 2019, 4:31 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 4
int random_rangue(int min, int max) { return rand() % (max-min) + min + 1; }
3rd Apr 2019, 4:30 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 4
Saksham Narula That's the problem with India C++ schools Im Indian and Im telling you that Tcc/TurboC is like pure shit to experts in C++
18th Apr 2019, 10:59 AM
Shahil Ahmed
Shahil Ahmed - avatar
+ 3
This is really a surprise that the school is stilll using an outdated tools for teaching, where industrial already abandoned it long time ago.
3rd Apr 2019, 4:36 AM
CalviŐ˛
CalviŐ˛ - avatar
0
In school they teach us c++ on turbo c++ compiler
3rd Apr 2019, 4:33 AM
Saksham Narula
Saksham Narula - avatar
0
Use visual studio
18th Apr 2019, 3:24 PM
ahsam yousaf
ahsam yousaf - avatar