Loren, Kenneth and Joe, Thanks for your response. I'm going to try your code and see.
Thanks, Hani On Nov 9, 8:21 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 10-Nov-07, at 12:56 AM, LorenDavie wrote: > > > import random > > Book.objects.all()[random.randint(0,Book.objects.count()-1] > > Book.objects.order_by('?')[0] > > -- > > regards > kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---