use rand.Float64 instead of Intn