This commit is contained in:
Tom Armitage
2021-02-28 18:47:01 +00:00
parent f0e48e3bc9
commit 803e0a5c44

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