54.152.38.154 |    

Navigation

Google Advertisement

random
  1. #!/bin/bash
  2. # ****************************************************
  3. # This function calculate a random digit between $rand
  4. # and $rand+$rand. Default is between 10 and 20.
  5.  
  6. function random () {
  7. local rand=${1:-10}
  8. perl -e 'print int( rand('$rand') + '$rand' );'
  9. }
  10.  
  11.  
  12. random "1801"
Parsed in 0.005 seconds at 56.22 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)
STDERR
(Bash::Function)
radius
(CSS)
shadow
(CSS)
rotate
(CSS)
create_function
(JavaScript::Snippets)