Random Object From an Array

/ Published in: Rails
Save to your folder(s)

I created an array of objects, but I wanted to reuse the array and pull one random object out of it so this is the code that I found thanks to this: http://www.ruby-forum.com/topic/144788

URL: http://www.mycollegesandcareers.com

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.