radom elemetn in array ruby code example
Example 1: ruby array has element
>> ['Cat', 'Dog', 'Bird'].include? 'Dog'
=> true
Example 2: ruby array
ary = [1, "two", 3.0] #=> [1, "two", 3.0]
>> ['Cat', 'Dog', 'Bird'].include? 'Dog'
=> true
ary = [1, "two", 3.0] #=> [1, "two", 3.0]