blob: 3514ccd81a81b5a9aabda8c98059247667a0144a [file] [log] [blame]
h1. random
h2. Purpose
Returns a random domain instance.
h2. Examples
{code}
def randomPerson = Person.random()
{code}
h2. Description
One of the major benifits of Redis is its great support for set operations including returning random set elements. This method takes advantage of that capability by returning a random instance of the corresponding domain class.