Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding Rares: Insight from a Programmer
#42
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
Too legit to quit.
Reply


Messages In This Thread
Finding Rares: Insight from a Programmer - by whiteninja - 13-01-2005, 10:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding Summit moon Magician X 12 1,724 11-03-2006, 11:12 AM
Last Post: FOREVER1
  Finding the l&k14 combat Magician X 3 793 11-03-2006, 11:09 AM
Last Post: FOREVER1
  rares and gliches speedy14 21 2,310 08-01-2006, 04:27 AM
Last Post: FOREVER1
  questions about soaB rares slayerdemon 4 699 10-09-2005, 09:18 PM
Last Post: whiteninja
  Tips about finding rares ShadowNugget 18 1,797 21-04-2005, 03:24 AM
Last Post: Ghost/Spectre
  Finding Inferno Bozuka from a hlideblue Todd 20 2,176 08-03-2005, 02:12 AM
Last Post: Mog Boy Yezno
  A few tower rares NetNomad 5 772 06-01-2005, 12:33 AM
Last Post: NetNomad
  Finding Rare Items? Dabrasco 3 782 20-12-2004, 11:41 PM
Last Post: Dabrasco
  Ultimate Forest Rares RareHunterAlpha 25 2,419 30-11-2004, 01:11 AM
Last Post: A.S.
  Best Way to Find Rares RareHunterAlpha 48 4,361 16-11-2004, 02:26 AM
Last Post: UltraDefender

Forum Jump:


Users browsing this thread: 1 Guest(s)