I'd define the secret_number outside of this parameter call. That way if you ever need to call `has_chance` again, your secret_number won't change. Something like:

```ruby
secret_number = (1..10).to_a.sample # or rand(1..10)
has_chance(secret_number, 3)
```