Thread
:
Algorithm RNG that progressively gets harder the higher the number
View Single Post
#
12
09-02-2013, 04:30 PM
Loriel
Somewhat rusty
Join Date: Mar 2001
Posts: 5,059
Quote:
Originally Posted by
fowlplay4
going off loriel's post... I came up with:
PHP Code:
(
1
-
random
(
0
,
1
)^
0.5
)
It took me way too long to figure out why 1-sqrt(rand()) is the same thing as 1-sqrt(1-rand())
Loriel
View Public Profile
View GraalOnline Profile
Visit Loriel's homepage!
Find all posts by Loriel