This commit is contained in:
Tom Armitage
2021-02-28 18:47:01 +00:00
parent 6d102c6c49
commit a7e099671d

View File

@@ -13,7 +13,6 @@ def print_instructions
end
def generate_target
# pick a three digit number with no repeating numbers.
# gien that, 102-987 is a reasonable starting point!
target = rand(102..987) while target.to_s.split('').uniq.size < 3