1337_macro
2006-09-30 03:27:00
I know i dont contribute much to srl or its members but this is too big to pass up.
Ok i was reading a news article about how computer launguages do not have true random funtions rather Psudo-Random funtions. I became interested in it and i made a simple script to test a random number and print the findings. Well i did and i ran it through a program that finds patterns in things and low and behold it found a pattern. That peaked my curiosity because i believe that jagex could use this to catch us because the longer a script runs (1 hour+) the better apparent the pattern becomes (no im not crazy!). Well i got to reading and Pascal uses a complex algorithm called the "Wichmann-Hill psudo-random number algorithm" this a pattern that is made to look random but is actually not random at all (especially on small numbers)…Well i did nothing about it for 2 weeks. Then i mentioned it to MadCow about it not being random and he became interested and asked me what solution did i have. I didnt have anything at the time but i do now. Here it is
Ok i was reading a news article about how computer launguages do not have true random funtions rather Psudo-Random funtions. I became interested in it and i made a simple script to test a random number and print the findings. Well i did and i ran it through a program that finds patterns in things and low and behold it found a pattern. That peaked my curiosity because i believe that jagex could use this to catch us because the longer a script runs (1 hour+) the better apparent the pattern becomes (no im not crazy!). Well i got to reading and Pascal uses a complex algorithm called the "Wichmann-Hill psudo-random number algorithm" this a pattern that is made to look random but is actually not random at all (especially on small numbers)…Well i did nothing about it for 2 weeks. Then i mentioned it to MadCow about it not being random and he became interested and asked me what solution did i have. I didnt have anything at the time but i do now. Here it is
Function Modulation(range:Integer):integer;
Var
A, B, E, F, Modulated:Integer;
C, D:Extended;
Modded:Boolean;
Begin
Result := 0;
repeat
A:=RanDom(Range)
B:=RanDom(Range)
C:=Sqrt(A)+(Random(Range))
D:=Sqrt(b)+(Random(Range))
E:=Random(Trunc(C))
F:=Random(Trunc(D))
If(not SameValue(E,F))then
Begin
If (E+F<=Range) then
Modulated:=(E+F)
Modded:=true
End;
until(Modded=True)
Result := modulated;
End;