I got confused abit by PHP quote above, the code is in c++ and the answer is bar by default int is signed in c++
signed numbers are both negative and positive numbers
unsigned are only positive numbers
@TerribleWaste do you have a idea where i can get jobs aggregator in Kenya, that is a i have a contract to create a job searching website like jobwebkenya.com, bestjobskenya.com.
Where do they get they data coz all these websites show same jobs but use different user interface
The Intel processor family contains an instruction rdtsc which can be used to implement random number generator however that approach is not portable across different processors.
int random(int limit)
{
int x;
__asm__("rdtsc": "=d" (x) );
return x % limit;
}
Explanation: The int is promoted to unsigned int. Because its most significant bit is 1(negative sign bit when not unsigned), a is a much larger number than b.