Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 247 Bytes
#include "nbgenerator.h"
int getPseudoNumber(int numLimit){
int rNumber = 0;
srand(time(NULL));
if(numLimit > 0)
rNumber = rand() % numLimit;
else
rNumber = rand() % DEFAULT_MAX_NUMBER_LIMIT;
return rNumber;
}
You can’t perform that action at this time.