hi
i try to create quiz script.
how i can generate 1800 (1-1800) different random numbers
and store them in db table called user.
no duplicate number.
then, i want to pick back that number
so that i can use one by one for select other record
from table called question that have id(1-1800) once the file activated by user
(meaning that once user send http get)
e.g:
1st - system will create 100 unique question from 1800 question and store to user table.
2nd - when user request for question system will give one question base on question id that have been store at user table before.
3rd - then..same like 2nd...until 100 question
4rd - i'm stuck......
my friend to me this should be work?
i don't know, just share it.
what is your opinion?
SELECT * FROM question ORDER BY RAND () LIMIT 100
plz, i'm stuck
thankz