Since computers cannot generate truely random numbers, they use a cleverly designed algorithm that is unpredictable.
The variable X must be the index of the value if your algorithm generates periodic random numbers.
NOTE: Algorithms 1-4 are made using online applets.
I have two algorithms that uses one variable named X. Notice both values are less random with an X of above -3.34 and below 3.34.
1. y = abs(cos(tan(cos(x*pi)*sin(x/pi)*(x+(x*x))/(pi*(4.149683-(pi*2)))*0.9489832928)))
2. y = abs(atan(asin(cos(sin(x/pi)/cos(x*pi)/(pi/x)))))
I created another (infact, 2 more) simpler algorithms that are more random but require X to be positive.
3. y = abs(sin(x^x))
4. y = abs(cos(x^x))
Last edited by rdococ (2012-03-28 07:38:18)
Offline
What?
You lost me there.
Offline
You lost me where I lost you there. It's simply a gallery of algorithms to create random numbers.
Offline
slinger wrote:
rdococ wrote:
3. y = abs(sin(x^x))
4. y = abs(cos(x^x))Those aren't random
Yes, I've tested then
...maybe because you kept incrementing X by 1 instead of incrementing X by some low value (e.g. 0.1415926535...)?
Offline
rdococ wrote:
slinger wrote:
rdococ wrote:
3. y = abs(sin(x^x))
4. y = abs(cos(x^x))Those aren't random
Yes, I've tested then...maybe because you kept incrementing X by 1 instead of incrementing X by some low value (e.g. 0.1415926535...)?
If you do that they aren't random either. They just give the illusion of being random don't they?
Offline
Is this highschool math and beyond? I'm kinda lost here.
Offline