title: How do I generate random numbers in 3 lines - Linux Shell Script
body: <p>I would like to write a code that can generate 3 rows of 6 random numbers spaced out, which shuffle after a given time (0.5 seconds), and no new rows are created, basically 6 random numbers keep generating in 3 rows.
  The code I have so far is:</p>
  
  <pre><code>echo " "
  
  echo " "
  
  echo " "
  
  
  
  for i in {1..5};
  
  do
  
  for i in {1..1};
  
  do
  
  
  echo -ne " $(($RANDOM % 100))   $(($RANDOM % 100))   $(($RANDOM % 100))   $(($RANDOM % 100))   $(($RANDOM % 100))   $(($RANDOM % 100))\r"
  
  
  done
  
  sleep 0.5
  
  done
  </code></pre>
  
  <p>However, when I try to add the second and third row to this, it doesn't seem to work the way I want it. A sample output could look like:</p>
  
  <p>45 88 85 90 44 22</p>
  
  <p>90 56 34 55 32 45</p>
  
  <p>58 99 42 10 48 98</p>
  
  <p>and between these numbers, new ones will generate, keeping only 6 columns and 3 rows. I have tried making matrix too but it didn't work for me.</p>