fix equality test in goToRandom in samples