I'm trying to def random_both in order to call both a random_case and a random_name and I think I'm just messing up the syntax to call it right, I'm super new to Ruby and am just really frustrated by this as it feels like it should be simple.
def upper(string)
string.upcase
end
def lower(string)
string.downcase
end
def random_name
["Ollie", "Ana"].sample
end
def random_case(string)
[upper(string), lower(string)].sample
end
**def random_both
return random_name
return random_case
end**
puts "My name is #{random_both()}"