Update singleton_methods.rb

Add use of actual singleton_methods method
Make str.random and String.random generate random strings instead of integers
Mention solution from stackoverflow for random string generation