graydon/rust — Issue #1018: Add random float generation to stdlib
Author: jdm
Created: 2011-10-09 13:45:20+00:00
State: open

Easy way: take the result of rand::mk_rng().next() and divide it by 4294967296.0, yielding a float in the range [0.0,1.0]