def random(self, cascadeFetch=False):
matchedKeys = list(self.getPrimaryKeys())<EOL>obj = None<EOL>while matchedKeys and not obj:<EOL><INDENT>key = matchedKeys.pop(random.randint(<NUM_LIT:0>, len(matchedKeys)-<NUM_LIT:1>))<EOL>obj = self.get(key, cascadeFetch=cascadeFetch)<EOL><DEDENT>return obj<EOL>
Random - Returns a random record in current filterset.


@param cascadeFetch <bool> Default False, If True, all Foreign objects associated with this model
   will be fetched immediately. If False, foreign objects will be fetched on-access.

@return - Instance of Model object, or None if no items math current filters