Script - Random Pokemon

Script to generate random pokemon name.

#!/usr/bin/env bash

URL="https://raw.githubusercontent.com/sindresorhus/pokemon/master/data/en.json"

readarray -t pokemon < <(curl --silent $URL | jq -c '.[]')
index=$[$RANDOM % ${#pokemon[@]}]
echo "${pokemon[$index]}"