def randomize_case(string)
  letters = string.split("")

...

Ruby Randomize case

by Aziz Light, August 22, 2011 06:32, 3 refactorings, tagged with random, String Manipulation

Is there a better, shorter ...

D69bd6b89f0c9204eed89de9d7ee4632 Talk
# http://www.ruby-forum.com/topic/163649
class Array
...

Ruby Randomized array pairs to s...

by TimK, October 20, 2010 01:43, 2 refactorings, tagged with rails, random, array

The purpose of this code is...

2722012beb9afcad75df5c9f2229fd8c Talk
alphanumerics = [*('0'..'9')] + [*('A'..'Z')] + [*('a'..'z')]
(0...25).map { alphanumerics[Kernel.rand(alphanumerics.size)] }.join

...

Ruby Generating a string of rand...

by scudco, July 02, 2008 18:23, 4 refactorings, tagged with random, random character

So this is kind of trivial ...

7bdb696ac0f589522c9ed31a1b24057b Talk
module DiscreteDistribution
  
  # pick_random is useful for spliting up a collection by its specified discrete distribution
...

Ruby Randomly pick an item base ...

by David Dai, June 15, 2008 06:02, No refactoring, tagged with random, ruby, algorithm, discrete, discrete distribution, load balance, multivariate, ab-test

This method is useful to lo...

535215c41c0949117577517b4506202c Talk