Quote:
Originally Posted by pixellany
|
Still doesn't work:
Code:
matthew@mvm:/h/misc> cat numberr
#!/bin/bash
echo $RANDOM
RANDOM="1"
echo $RANDOM
matthew@mvm:/h/misc> ./numberr
24247
17767
matthew@mvm:/h/misc>
:Sigh: I don't really care if I use $RANDOM or /dev/random,
just as long as it generates a 1 or 0 quickly! Because if there is a 1 the $num will go up, then it will dislpay
$num number of
"."s (Periods). So going quickly it will randomly go up, down, etc... How would I use /dev/random? Or how would I get the $RANDOM to reset each time before it is called?? Thanks
edit: Hm it looks like it did work....... But the only problem is the 2nd number always stays the same! :\ :?