the number always + 22423 that begin from 10016486 and end at 99999985
Example random result from generate button :
10016486 + 22423 = 10038909
10038909 + 22423 = 10061332 and so on, maximum to 99999985
or if somebody can convert below c++ code to working javascript/html random number generator.
Expand|Select|Wrap|Line Numbers
- #include <cstdlib>
- #include <ctime>
- #include <iostream>
- using std::cout;
- int main( ) {
- // srand will set a random starting point for rand()
- // We use the time as a seed, as it's always changing
- srand( ( unsigned )time( 0 ) );
- // We generate a random number between 0 and 4013
- // 4013 because ( 22423 * 4013 => 89983499 and
- // 89983499 + 10016486 => 99999985 - our max value )
- int randomKey = rand() % 4013;
- // Output the generated key and don't immediately close the command prompt window
- cout << "Your random key is: " << ( 10016486 + ( randomKey * 22423 ) ) << "\n";
- system( "PAUSE" );
- return 0;
- }