I need to write a shell script that generates 10 random numbers. I have done it using this code:
#!/bin/bash
for i in `seq 10`
do
od -An -N1 -i /dev/random
done
But my Professor insists that I use "random" to generate the numbers but everytime I use random I get an error message or nothing at all
Aucun commentaire:
Enregistrer un commentaire