I recently held a contest on my Instagram to provide my services for free to creatives and small businesses who needed a website/portfolio built.

Note: This is only one way to achieve this. Take it and run wild! (full code at end of article)

To select the contest winners, I built a simple function to randomize an array. For now they are numbers, but you can substitute these for the list you need to pick from.

const array = [1, 2, 3, 4, 5, 6];

Create a variable that makes a shallow copy of your array and slices it:


“Why don’t you just get a job?”

I’ve heard this question countlessly over the last few years from my immigrant parents and relatives. They came to Canada in the 80s for a better life, a life that they envisioned but couldn’t get, so they put that expectation on me.

It’s hard to describe to them that this new era is substantially different that the generation they grew up in. It’s not black and white anymore. We don’t just go to University, get a job, and live happily ever after at the same job for 40 years.

I went to University…

Atina Chaikith

DJ, Web Developer. Doing millennial things in Toronto

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store