ruby on rails - get 5 random favorites from flickr -


I need to retrieve 5 random favorite photos from Flickr profile.

Work with the Flickr API.

And it . Using the Favorites method works great, I can get the full list of user's favorite photos.

This is Flickr :: PhotoCollection and I do not know how to get 5 random records from it.

Thanks in advance!

  user.favorites.sort_by {rand} [0..4] = "Post-text" itemprop = "text"> 


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -