Skip to content

Instantly share code, notes, and snippets.

@jimiyash
jimiyash / gist:6da72f62e7c94dc0d5f96f08ae5ce3fc
Created January 14, 2022 03:23
Spelling test for your kids
#! /bin/bash
shuffle() {
local i tmp size max rand
# $RANDOM % (i+1) is biased because of the limited range of $RANDOM
# Compensate by using a range which is a multiple of the array size.
size=${#array[*]}
max=$(( 32768 / size * size ))
php -r "echo date('Y-m-t', time() );"