Remove rand(); using uniform()