My most recent project is Don't Eat the Onion, a subreddit guessing game. I pick random submissions from two different subreddits and have the user ascertain their subreddit of origin. Users can play the default mode, which picks submissions from /r/theonion or /r/nottheonion, the former's nonfictional counterpart; alternatively, users can input two subreddits of their choosing as a custom game.
The data that Reddit provides to my server is first iterated over by one of my functions, which assigns each index a unique number; indeed, the joshNumber is a visible property in the JSON that eventually reaches the client. I give each entry a joshNumber to easily randomize the sequence of this array so that the user never plays the game in the same exact order as before. Excluding the joshNumber, the same logic that handles my submission retrieval is essentially copied in my code that handles my top comment retrieval, although that function loops over every comment in a particular submission until it can find the highest-upvoted comment.