Random wikipedia page generator, using URLs instead of messages

So I made www.wikiroll.org

WikiRoll is a web app that allows you to roll a dice and be taken on a deep dive into something unexpected. It takes you to a seemingly random and very interesting Wikipedia page.

So i only kinda listened to the prompt… i thought instead of randomly returning a message as a string, i could return a link. Makes it capable of much more!

It took about two days and I learned a lot in the process. The code is super rudimentary, I stored the links in an array and randomly selected a url with:

const randomUrl = urlList[Math.floor(Math.random() * urlList.length)];

id love feedback on everything. This is the first time i’ve unleashed it into the world.

3 Likes

Congratulations :tada: Dear

Congratulations Dear

Hey, that’s a cool idea! Using a link instead of just a message opens up a lot of possibilities. It sounds like you put in a lot of effort and learned a bunch in the process, which is awesome. Storing the links in an array and randomly selecting one is a great start, especially for a first iteration. For feedback, maybe consider adding some sort of user interaction or customization options, like selecting categories or themes for the random articles.

1 Like

Wow, that’s quite impressive. It would be great if you could upload this to your GitHub.

thanks I appreciate that! yeah here is my GitHub!