Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <time.h>
#include <stdlib.h>
Random( const int& ivalue )
{
srand((unsigned)time( NULL ));
if( ivalue == 0 )
{
return 0;
}
else
{
int random = rand() % ivalue;
return random;
}
}