FYI, to match Math.random, which uses the range `[0, 1)`, this should call random instead.  I'll make the change.