inspired by rubyとzshを使ってランダム文字列を生成する - Qiita and kyanny/securerandom-cli · GitHub
- Bourne shell like shells (
sh
,bash
,zsh
) - Ruby version 1.9+
rand ; => 85800d9d5b (default 10 charactors)
rand 10 ; => f5794c8d18373d6 (your ordered string length)
rand hex 10 ; => d849dc6de1953eab647a (your ordered algorithm)
rand uuid ; => e5c9aaf9-2484-47ad-a419-61860cb1157a (UUID)
rand u ; => 663704fb-d0ce-446a-8320-68c9c009c078 (be able abbreviated, means uuid)
rand n 100000 ; => 73889 (put a integer number, range 1 <= n < arg)
rand f ; => 0.822746453691208 (put a floating-point number, range 0 <= n < 1)
License