fun firstByCondition(): Double { var d = Math.random() while(d < .99){ d = Math.random() } return d }