import sys
from random import randint
for i in range(1, 7):
...

Python 6 bit password generator

by https://www.google.com/accounts/o8/id?id=AItOawl3BeAhTXKYDpKI7ld64fgVwaukoKGEuUo, September 04, 2011 04:17, 5 refactorings, tagged with random, python

I needed 6 random(ish) bits...

55502f40dc8b7c769880b10874abc9d0 Talk
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
var getRandomNo = function(seed){
	
...

JavaScript learn more explodeEffect

by adardesign.myopenid.com, February 21, 2010 14:51, 2 refactorings, tagged with javascript, random, jquery, ui

This jQuery snippet creates...

55502f40dc8b7c769880b10874abc9d0 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
from random import random as _
eval(compile("\n".join(
	["(lambda %s:" % (chr((121 - ((25 - (ord("z") - y)))))) 
...

Python Random number generator

by dbr, April 02, 2008 10:11, 8 refactorings, tagged with random, number

It works okay, but I think ...

Efdad317c297a2aee89ef435995dbdb6 Talk
<script type="text/javascript">
var feature_stuff = new Array(
'<li><a href="#">URL 1</a></li>',
...

JavaScript Random URL

by DeathfireD, October 29, 2007 15:21, 7 refactorings, tagged with random, url, math

Outputs one of the 5 urls r...

421453710d51d7daaea8069af0aa4126 Talk