Hello friends,
I am trying to get 2 random values on each response using
order_by('?')[:2], but getting the same response each time. also tried
RandomManager() as described here.
https://stackoverflow.com/questions/962619/how-to-pull-a-random-record-using-djangos-orm
, but still getting the
Hi,
You can use random module in python to generate random numbers
Thanks and Regards
J. Ranga Bharath
Cell: 9110334114
On Thu, 17 Nov 2022, 7:51 pm cs.s...@gmail.com, wrote:
> Hello friends,
> I am trying to get 2 random values on each response using
> order_by('?')[:2], but getting the sam
2 matches
Mail list logo