shell random
来源:互联网 发布:caffe 预处理 编辑:程序博客网 时间:2024/06/05 11:30
random=$$ #Initialize the seed to the PID of the script
upper_limit=$1
random_number=$(( $random % $upper_limit + 1)) #或者 random_number=$[ $random % $upper_limit + 1]
echo "$random_number"
RN=$(dd if=/dev/random count=1 2>/dev/null | od -t u4 | awk '{print $2}' | head -n 1)
echo "$RN"
@SmartPhoneIBM54:~/script$ ./random.sh 100
18
154290310
awk -F@ '{ print $1 }' DispatchDrawGL | sort -u
awk '{ print $1 }' implements\ GLSurfaceViewGroup.DispatchDrawGL | sort -u
for f in `ls`;do cat $f | sed -e 's/\/\/\s*Log/Log/' > $f.ok;mv $f.ok $f;done
awk -F: '{ print $1}' drawChild.txt | sort -u | sed -e 's/\.\///'
- shell random
- Shell的RANDOM变量
- random
- Random();
- random
- Random
- Random
- random
- Random
- Random
- Random
- Random
- Random
- Random
- random
- random
- random
- Random
- pku1456贪心+并查集/线段树
- ffmpeg-0.8 开源编码解码库从linux下移植到windows vs2005
- 分组补空值问题
- 产生随机卡号
- JDK7 问世
- shell random
- ebs标签画布中怎么样确定选择的是那个画布(触发器)
- 哈佛学生的4年大学生活
- CentOS5配置VPN PPTP服务
- 复习C++ 走一遍基础 留下笔记----{六}
- java.text.DecimalFormat学习笔记
- jQuery简单介绍---从不懂到爱上他
- 关于MySql插入数据的乱码问题
- VMware安装网卡driver的方法