首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
(转)Linux下生产随机字符
企业开发
2018-05-31 11:07:36
阅读次数: 0
#!/bin/sh
alphabeta="a b c d e f g h i j k l m n o p q r s t u v w x y z"
number="0 1 2 3 4 5 6 7 8 9"
A=($alphabeta) # save as array
N=($number)
num_a=${#A
}
num_n=${#N
}
echo ${A[$((RANDOM%num_a))]}${N[$((RANDOM%num_n))]}
猜你喜欢
转载自
jackyrong.iteye.com/blog/1759892
(转)Linux下生产随机字符
Linux下生成随机密码(转)
linux命令行下生成随机密码
生产随机字符串
【转】Linux下生成patch和打patch
windows下生产ssh key
在 Linux 终端下生成随机/强密码的五种方法 | Linux 中国
Linux下生产者与消费者实现的问题详解
Linux下生成随机密码的19种方式方法
linux下生成key
linux随机密码生产mkpasswd命令
linux下生成00 01 02..99的这些数,怎么生成【转】
PHP下生成随机码
linux随机字符串
Spring Boot下生产环境logback日志配置
protobuf在Windows平台下生产golang代码
C/linux 产生随机字符串
linux终端下生存30天
linux下生成rsa私钥公钥
Linux 下生成国旗(法、日) .bmp
Linux下生成动态链接库
linux下生成core dump文件方法
linux下生成动态库和使用
linux下生成图片文件列表及读取
linux下生成patch和打patch
linux qt下生成core文件方法
linux 下生成 ssh 公私钥
生产随机数
js 生产随机颜色
linux字符串转字符画
今日推荐
周排行
Leetcode简单题61~80
解决zookeeper磁盘IO高的问题
多线程相关方法详解
Maven-setting.xml文件详解
Maven 项目的 classpath 理解
渊亭科技大数据笔试题
配置JVM内存分配
计算机网络个人学习笔记 (三)网络层 :第三部分 连载
js中两个等号(==)和三个等号(===)的区别
用C程序自动打开电脑上的程序
每日归档
更多
2024-09-18(0)
2024-09-17(0)
2024-09-16(0)
2024-09-15(0)
2024-09-14(0)
2024-09-13(0)
2024-09-12(0)
2024-09-11(0)
2024-09-10(0)
2024-09-09(0)