I have an array of countries:
@countries = ["Canada", "Denmark", "Germany", "Isle of Man", "Namibia", "Qatar", "South Africa", "United Kingdom","United States"]
And am building some random data for testing like this:
@test = [{ :name => "AAA -"+Faker::Name.name, :country => @countries.???? ....}]
How do I get a random value from the @countries hash?
@countries.rand(mlen)
does not work and returns NoMethodError: private methodrand' called for #`.