mirror of
https://github.com/LucasCodeur/alcu.git
synced 2026-04-28 17:44:34 +02:00
16 lines
209 B
Bash
Executable File
16 lines
209 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "usage: bash map_gen.sh [size] [range]"
|
|
exit 1
|
|
fi
|
|
|
|
unset var
|
|
for i in $( seq 1 $1 )
|
|
do
|
|
var+="\n$(( RANDOM % $2 + 1))"
|
|
done
|
|
var="${var}\n";
|
|
echo -e $var | tail -n +2
|
|
|