functions expression rules

Certified Senior Developer

for example, I am having 10 questions in my DB  for that each question has a unique question id

If I enter 5 then 5 question id  should be come randomly help me out on this 

  Discussion posts and replies are publicly visible