View Single Post
  #12  
Old 09-02-2013, 04:30 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by fowlplay4 View Post
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())
Reply With Quote