[Shell]随机数
摘要:
0-1之间的随机数# awk 'BEGIN{srand();printf "%.16f\n",rand()}'0-20之间随机数# awk 'BEGIN{srand();sum=rand()*21;printf("%d\n",sum)}'# echo `expr $RANDOM % 21`# ech 阅读全文
posted @ 2016-09-11 00:14 losbyday 阅读(838) 评论(0) 推荐(0) 编辑