Dear all,
Since we don't have unsigned int how can I convert this code to B4J?
In the following code seems unsigned long is actually unsigned int as it is 32 bit. Thanks!
Since we don't have unsigned int how can I convert this code to B4J?
In the following code seems unsigned long is actually unsigned int as it is 32 bit. Thanks!
C:
/* Calculate pseudo-random 32 bit number based on linear congruential method. */
unsigned long GenerateRandomNumber( void )
{
/* Change this for different random sequences. */
static unsigned long randSeed = 22222;
randSeed = (randSeed * 196314165) + 907633515;
return randSeed;
}