DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
generate 6 digit random number ruby
10.times.map{rand(10)}.join # => "3401487670"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#generate
#digit
#random
#number
#ruby
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit