Alright, so I wanted to spice things up a bit in Apex Legends. You know, get out of my comfort zone with the usual legends I pick. So, I thought, why not build a little randomizer to choose for me? And that’s exactly what I did!
First, I needed to figure out how to actually do the randomizing. Since I wanted something quick and simple, I decided to go with a simple web page. Basic, I know, but it gets the job done.

Brainstorming the Basics
My first step was listing all the Legends. I just went to the Apex Legends website, and copypasta’d all the names, one by one.
- Bangalore
- Bloodhound
- Caustic
- …and so on…
I saved it all in a plain text * names, new line.
Then I Got into the code. I’m no coding wizard, but I know enough HTML and Javascript to get by. I Created a new HTML file, and started to build the structure. Nothing fancy, a simple webpage with a button.
I added a button with some text like “Randomize!”. And added a space below to output result.
Making It Work
Now for the Javascript part. This is where the magic happens. Or, you know, the basic random selection happens. I’ve put my legends list into an array.
I wrote a small function that would pick a random legend from that list. It’s pretty straightforward, it generate a random number, use that number as the index in array, and get the name, right?
Last step, I made the button do something. I added a action to that button, that call the random function, and show the selected Legend’s name. Boom! It’s working!
The Final Result
So, I’ve got my very own, super simple Apex Legends randomizer. It’s not pretty, it’s not complex, but it does exactly what I need it to do. Now, every time I play, I just click the button, and bam, I’ve got a new Legend to try. It’s definitely made things more interesting, and I’ve even discovered some new favorites that I wouldn’t have tried otherwise!
I feel so happy I did this! It’s basic, I know, but I built it, and it is mine!