I have the following javascript code
var d = Math.random(), k = parseInt((1e3 * d)/2), s = d + ""
output of d : 0.67152
0.67152