16 lines
214 B
Bash
Executable File
16 lines
214 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# generate random feature indices
|
|
|
|
row=$1
|
|
col=$2
|
|
max=$3
|
|
|
|
for ((y = 0; y < row; ++y)); do
|
|
n=$((RANDOM%col + 1))
|
|
for ((x = 0; x < n; ++x)); do
|
|
printf "$((RANDOM%max)) "
|
|
done
|
|
printf "\n"
|
|
done
|