Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
interest= ["nature", "agriculture", "farming", "ai", "infography", "memes", "DIY home", "electronics", "web design", "garden design"]
survey_data = {}
10000.times do | n |
primary_interest = interest[Random.rand(interest.size)]
secondary_interest = interest[Random.rand(interest.size)]
survey_data[n.to_s] = {:name =>, email:,
interest: [primary_interest, secondary_interest], age: Random.rand(18..65)}
p survey_data
#survey_data will have mocke data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.