Making Random Variables
Im rerunning a shell script under different options (which at first I thought I could solely use as a unique identifier, but realised my process is stochastic by nature so even identical start variables will give slightly different results) and wanted to know what you prefer? I was trying to find a random number/ASCII generator or putting a time stamp on it. Which is better and what command would I use to get it?
|
I forgot to mention, I am using bash. Not sure if the command would be a coreutil or bash specific so I thought I should put that out there.
|
Using bash, you can use the $RANDOM variable.
Quote:
|
All times are GMT -5. The time now is 03:24 PM. |