| 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. |