Skip to content

Instantly share code, notes, and snippets.

@jreisinger
Last active February 5, 2016 08:16
Show Gist options
  • Save jreisinger/9376740 to your computer and use it in GitHub Desktop.
Save jreisinger/9376740 to your computer and use it in GitHub Desktop.
# generate and sum million random numbers
for ((i=0; i<1000000; i++)); do echo $RANDOM; done | perl -lne '$sum += $_ } END { print $sum'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment