Parent

Methods

String

Public Class Methods

random(size) click to toggle source
# File lib/graphviz/core_ext.rb, line 2
def self.random(size)
  s = ""
  d = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
  size.times {
    s << d[rand(d.size)]
  }
  return s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.