import random ... rows=db(...).select().sort(lambda row: random.random())
On Dec 6, 4:09 pm, Albert Abril <albert.ab...@gmail.com> wrote: > Hi! > > As said on the book, in a DAL select, orderby='<random>' is not supported on > GAE.http://web2py.com/book/default/chapter/06#orderby,-groupby,-limitby,-... > > Someone knows the best way to randomize a Rows dictionary? > (thinking in GAE deployment of course) > > Thanks in advance.