Alright, so I wanted to make choosing a character in Apex Legends a little easier, especially when I’m playing with my buddies and we can’t decide who to pick. I’ve been messing around with this idea for a little “Apex Legends Picker” thingy, and here’s how it went down.
First Steps: Getting Started
First, I needed to somehow pull out the all legends’ name. So i was simply open the game, and write all legends’ name one by one, it was a tired work but i think it’s worth, maybe.

Then, i put all names in the array, it’s a good data structure to store.
The Randomization Part
The next thing is to randomize the selection, I don’t know how to write the code ,so just copy a simple random function online. It generates a random number, and I use that number as index in the array of legends’ name
Showing the Result
To show the result, I use the simplest way , print the selected Legend’s name straight to the console. Just using print and got the work done.
Putting It All Together
So, I wrote up all the functions, make sure it can run correctly. It’s basic but works, it pick a random Legend.
Tweaks and Future Ideas
I’ve been thinking about some cool additions. like exclude some legends that i don’t want to play, it’s more user-friendly.
Overall, it was a fun little project. It’s definitely helped speed up our character selection, and it was cool to build something practical that I actually use. It’s not super fancy, but it does the job, and that’s what matters, right?