Skip to content

Instantly share code, notes, and snippets.

@daddydanielt
Last active August 29, 2015 14:03
Show Gist options
  • Save daddydanielt/057a4f2328bcef5d20af to your computer and use it in GitHub Desktop.
Save daddydanielt/057a4f2328bcef5d20af to your computer and use it in GitHub Desktop.
Ruby Code Snippets
#Create an array with 'size' rand numbers between 's_n' and 'e_n'
size=10
s_n=0
e_n=100
arr=Array.new(size){ rand(s_n..e_n) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment