McBin

artistic_ascii.sh

#!/bin/bash

# Artistic ASCII Art Generator based on Random Seed

# Array of predefined artistic ASCII arts
declare -a arts=(
"  /\_/\  \n ( o.o ) \n  > ^ <  \nA simple cat"
"  .-.
 (   )
  '-' \nA basic face"
"  /\
 /  \
/____\\ \nA pyramid"
"  *   *   * \n  * * * * * \n* * * * * * * \nA starry night"
)

# Read a random number as seed (e.g., from command line or generate one)
if [ $# -eq 0 ]; then
  seed=$((RANDOM % ${#arts[@]}))
else
  seed=$(( $1 % ${#arts[@]} ))  # Use provided arg as seed
fi

# Output the selected artistic ASCII
echo "${arts[$seed]}"
Copied to clipboard!