refactored; call rand.Seed(); stop test after 100 correct