Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
generate 6 digit random number ruby
F_kh
Programming language:
Shell/Bash
2021-05-19 09:11:26
0
Q:
generate 6 digit random number ruby
Fattaneh Talebi
Code:
Shell/Bash
2021-08-30 08:57:22
10.times.map{rand(10)}.join # => "3401487670"
0
Tags
number
git
random
digit
Related
bash generate random number between
rails no migration with version number
New to Communities?
Join the community