I need to create Competition

every day there is question multiple choose

 if the answer is correct get 30 points (save his name 10 times in the list) if doesn’t get 10 points( save his name one time in the list )

in the end of day choose one of user by random of list 

can anyone let me know how to create without Javascript 

Hi Farhan,

thank you for posting your question here.

I have a question about the logic of your process:

If the user selects the right answer his name is 10 times in the list and collects 30 points (meaning 3 points for each record in the list).

But if the user doesn't select the right answer his name is only 1 time in the list and collects 10 points (meaning 10 points for each record in the list) ... seems not well balanced.

Regarding the random select, you can use any array sorting process that you wish.