How to use rand in dev c language

i have made a program in school that chooses a random number and you need to guess it. you put in a number and it says higher or lower.
the only problem is that i can't set RAND_MAX and its a 4 or 5 diget number (havent figured it out yet). the help explains RAND_MAX but doesn't say how to set it.
plz help
thnx
a confused yr 9
humbug

The pseudo-random number generator is initialized using the argument passed as seed. For every different seed value used in a call to srand, the pseudo-random number generator can be expected to generate a different succession of results in the subsequent calls to rand. Two different initializations with the same seed will generate the same succession of results in subsequent calls to rand. Through out this page, we're limited to pseudo-random numbers. We can generate a pseudo-random number in the range from 0.0 to 32,767 using rand function from library. The maximum value is library-dependent, but is guaranteed to be at least 32767 on any standard library implementation.

How To Use Rand In Dev C Youtube

P.S.do you need to refresh the page to see replys?

Dev
  • 6 Contributors
  • forum 6 Replies
  • 11,574 Views
  • 7 Years Discussion Span
  • commentLatest Postby c1c2c3c4cLatest Post

Narue5,707

You don't set RAND_MAX, it's a constant value (usually 32767). I don't see why you would want to set it unless the range is too small for you (in which case you use a better random number generator). Tell us how you're trying to go about solving the problem, show us your code, and we'll help you with it.

Download Auto-Tune Evo TDM v6.0.9.2 Installer.exe from the link above and run the setup by double-clicking on the.exe file. Follow the on-screen instructions and complete the setup. Launch Auto-Tune Evo VST using the desktop or start menu shortcut, or you can load the VST inside your music production. /auto-tuneevovstdll-crack-free.html.