13-01-2005, 10:57 PM
this is a program i wrote (in C) for picking random intergers a while ago and it is just like any basic random number program. it uses the number of seconds since 12:00 AM Jan 1, 1970 as the number to start with:
/*returns a random +int between two given +ints*/
#include <time.h>
int random(int min, int max)
{
time_t rand;
int ans, x=10000;
time(&rand);
rand %=100000;
ans = rand % x;
while(!(min<=ans && ans<=max))
{
ans = rand % x;
rand = (rand*100*clock())+ans;
if(x>10) x /= 10;
}
}
on line 11 the number of seconds is put into the variable "rand". here is where anything could be put in instead. if ST were to use this program as their random number generator they could have used the beat time there, or the number of steps you've taken, or the amount of damage you've taken, or the number of times you've visited the hospital, or the amount of meseta you have spent at any of the shops, or....... the thing is we don't know what they used so we have two ways of finding out:
1) wait for one of those people who studies the pso source code (like heyf00l) to figure it out
2) abduct all of ST
/*returns a random +int between two given +ints*/
#include <time.h>
int random(int min, int max)
{
time_t rand;
int ans, x=10000;
time(&rand);
rand %=100000;
ans = rand % x;
while(!(min<=ans && ans<=max))
{
ans = rand % x;
rand = (rand*100*clock())+ans;
if(x>10) x /= 10;
}
}
on line 11 the number of seconds is put into the variable "rand". here is where anything could be put in instead. if ST were to use this program as their random number generator they could have used the beat time there, or the number of steps you've taken, or the amount of damage you've taken, or the number of times you've visited the hospital, or the amount of meseta you have spent at any of the shops, or....... the thing is we don't know what they used so we have two ways of finding out:
1) wait for one of those people who studies the pso source code (like heyf00l) to figure it out
2) abduct all of ST
Too legit to quit.

