English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Though I highly doubt it, it's worth a try. Also, I wasn't to sure where to put this...

2006-06-20 05:55:28 · 5 answers · asked by Not me 1 in Computers & Internet Other - Computers

The site mainly uses PHP stuff, so I'm assuming thats the kind of RNG they're using

2006-06-20 06:05:24 · update #1

5 answers

try this to generate M-random number:

/* **************************************************** */
/* ********************* PROGRAM ***************** */
/* ********** MyRandomNumberGenerator.java **** */
/* **************************************************** */

public class MyRandomNumberGenerator {
public static void main(String[] args) {

final int M = 100;// How Many Numbers?
int a=7;// Wide the range with 'a'
int c=5;// and times to repeat it with 'c' (Translation)
int m=100;// What range? 0..15

int[] rndNbr = new int[M];
rndNbr[0]=4;
for (int count=1; count rndNbr[count] = ( rndNbr[count-1] * a + c ) % m;
if (count%5==0) System.out.println();
System.out.print(rndNbr[count] + "\t");
} // End of for-loop
} // End of main-method
} // End of class MyRandomNumberGenerator

/* **************************************************** */

This is in Java 1.4. Compile it and Interpret it.

The Idea is to use the modulo (%) operator.

SEED_(t+1) = ( SEED_(t) * A + C ) modulo M

where A, C and M are constants greater than Zero.

SEED_(0), SEED_(1), SEED_(2), ......, SEED_(M-1)
are the random numbers generated.
It is pretty important to initialize the sequence.
It is done by giving the first value of the sequence only
and it is SEED_(0).
Dr. Donald Knuth is the Prince for
Random Number Generators. Check his book.
This hereby is his or based on his.

R.G.P., MSAP.

2006-07-04 04:50:27 · answer #1 · answered by theWiseTechie 3 · 0 0

LOL, good luck finding someone willing to let you decompile his random number generator (first answer)

It's virtually impossible. Even if you knew the algorithm for generating the numbers, you'd still have to figure out where the seed value is coming from. Time? Data? It's not an easy thing.

2006-06-20 06:03:23 · answer #2 · answered by Ryan E 3 · 0 0

If it is in exe format and you get permission of the owner i will decompile it...

2006-06-20 05:57:30 · answer #3 · answered by xeonxr6 2 · 0 0

its hard sir :)Its hard to guess how the output number will be and what combination of formula the programmwer used ...

2006-06-20 06:00:04 · answer #4 · answered by Haneef Puttur 3 · 0 0

Well if you dedicate your LIFE.... you have a nice chance .... :)))

2006-07-02 02:56:58 · answer #5 · answered by sinekt 2 · 0 0

fedest.com, questions and answers