Search Results

Search: Posts Made By: luoluo
Forum: Programming 05-16-2010
4,981
Posted By luoluo
Generate random number
I saw this formula to generate random number between two specified values in shell script.the following.

$(((RANDOM%(max-min+divisibleBy))/divisibleBy*divisibleBy+min))

Give a example in book....
1,563
Posted By luoluo
Thanks, I understand your meaning,I use...
Thanks,

I understand your meaning,I use shell of fedora 11 ,I have already tested this issue in my system,and as your result.
1,563
Posted By luoluo
Miscellaneous operators
Hi everyone,

I read some shell script code,then I have some issue.

the following code.


let "t1 = ((5 + 3, 7 - 1, 15 - 4))"
echo "t1 = $t1"


t1=11
Here t1 is set to the result of the...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy