Best way to pick a random reply?

I want to try and do a little competition to encourage more participation asking each user to reply to a post with some fun comment for a chance to win some prize.

Is there a good way to easily pick a reply at random? Any thoughts?

Do you intend to be doing this with some regularity or want it integrated with Discourse for any other reasons?

If not, the simplest approach might be to just roll an n sided dice and then count down the replies. You probably don’t have different sided die to infinity lying around but you can pretend you do with RANDOM.ORG - Integer Generator

Generate 1 integer, value between 2 and however many posts there are including the first, then get numbers. To the right of the posts you can drag the slider to the result number and it will highlight the post.

3 Likes

I actually think that’s a really simple and great solution. Thanks @Simon_Manning

I would set “slow mode” to make sure each user can only join once in each 24 hours.

Awesome!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.