Agile Web Development

Build it. Launch it. Love it.

StringExt

Extending String with a class function rand(len) to generate a random string of ‘printable’ characters of ‘len’ length.

Example usage

  >> String.rand(10)
  => "LACmrbvbU}"
  >> String.rand(10)
  => "[c\\k@psUOd"

Vitals

Home http://thecodemill.biz/rdoc/string_ext/
Repository http://thecodemill.biz/repository/plugins/string_ext/
License LGPL
Tags Tag_red
Rating (3 votes)
Owner Bart Teeuwisse
Created 16 November 2007

Comments

Add a comment