18.118.184.237 |    

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.002 seconds at 183.84 KB/s

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

User online
There are 8 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)