I'm trying to create a query that generates random numbers for each record, sorts them by that field, then selects the top record. This should randomize the record being selected.
I can use the Rnd([ID]) function which does appear to generate a random number. Problem is that each time I exit the program and come back in, it always selects the same record. When I remove the Top = 1, to show all the records, every row does have a different random number but it does not appear to be sorting by this field.
If I run the query, here is the number I get:
0.98609316349029
Exit the program, restart, and run the query again:
0.98609316349029
If I refresh the query, the second and third time does appear to be random but the first result is always the same. Any ideas on how to generate truly random numbers?
I can use the Rnd([ID]) function which does appear to generate a random number. Problem is that each time I exit the program and come back in, it always selects the same record. When I remove the Top = 1, to show all the records, every row does have a different random number but it does not appear to be sorting by this field.
If I run the query, here is the number I get:
0.98609316349029
Exit the program, restart, and run the query again:
0.98609316349029
If I refresh the query, the second and third time does appear to be random but the first result is always the same. Any ideas on how to generate truly random numbers?