#!/bin/bash
rm -f file*txt

for i in `seq 1 9` ; do

 line=$(( $RANDOM % 100 + 1 ))

 for j in  `seq 1 $line` ; do
   id=$(( $RANDOM % 10 + 1 ))
   ev=$(( $RANDOM % 20 + 1 ))
   aa=$(( $RANDOM % 10 + 1 ))
   if [ $aa -ne 1 ] ; then
    echo "$id $ev" >> file-$i.txt 
   else
    echo "$id a" >> file-$i.txt 
    fi
 done
 
done
