JSFiddle - React, Tailwind, and code Playground

by Dmitry Ieremenko

JavaScript

const arr = ["Football", "Volleyball", "Jogging", "Swimming", "Cycling", "Tennis", "Basketball", "Boxing", "Gym", "Yoga", "Crossfit", "Dancing", "Fitness", "Kayaking", "Skiing", "Carting", "Paintball", "Snowboarding", "Skating", "Roller skating", "Board games", "Chess", "Checkers", "Computer games", "Camping", "Travelling", "Hand made", "Make up", "Music", "Movies/Series", "Art", "Cafe/Restaurants", "Theatre", "Fishing", "Hunting", "Karaoke", "Quests", "Reading books"];

const count = arr.length;
const result = [];
let key;

for (let i; Math.floor(Math.random() * arr.length); i++) {
    key = Math.floor(Math.random() * arr.length);
    if (!result.includes(arr[key])) {
        result.push(arr[key]);
    }
}
console.log(result);