generate random float instad of using xhr to random num-gen website