Adventures in Random

Or how there are patterns in everything.

Having embarked on my first tentative steps into front-end development, the hours of bootcamp labs, lectures and lessons soon adding up; until one inoccuous looking lab appeared — “JavaScript Project Mode” — What was this?

Ace Rimmer, what a guy!
Ace Rimmer, what a guy!
Ace Rimmer — What a guy!

Starting the build

The ideation and exploration phase

{name: "pikachu", url: "https://pokeapi.co/api/v2/pokemon/25/"}
let randomPokemonId = function(){
return Math.floor(Math.random() * 151)
}

Random (or is it?)

The “is it actually random?” phase

gameArray = [...randomPokemonArray, ...randomPokemonArray]
A seemingly not random pokemon board with numerous repeats
A seemingly not random pokemon board with numerous repeats
It is random I promise!

Former tech banker, now aspiring software engineer. Feel free to get in touch.