c++ random between two values

[ad_1]

c++ random between two values
int randNum = rand(
make random nuber between two number in c++
#include       /* NULL */
#include      /* srand, rand */
#include        /* time */

int Main()
{
  int randomNumber;

  /* initialize random seed: */
  srand (time(NULL));

  /* generate random number between 1 and 10: */
  randomNumber = rand()
	v1 = rand()
	v2 = rand()
	v3 = rand()
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com