Random different values on each request

2022-11-17 Thread cs.s...@gmail.com
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

Re: Random different values on each request

2022-11-19 Thread RANGA BHARATH JINKA
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