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
def randomize_case(string)
letters = string.split("")
...
Ruby Randomize case
Is there a better, shorter ...
# http://www.ruby-forum.com/topic/163649 class Array ...
Ruby Randomized array pairs to s...
The purpose of this code is...
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...
alphanumerics = [*('0'..'9')] + [*('A'..'Z')] + [*('a'..'z')]
(0...25).map { alphanumerics[Kernel.rand(alphanumerics.size)] }.join
...
Ruby Generating a string of rand...
So this is kind of trivial ...
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...
from random import random as _
eval(compile("\n".join(
["(lambda %s:" % (chr((121 - ((25 - (ord("z") - y))))))
...
Python Random number generator
It works okay, but I think ...
<script type="text/javascript"> var feature_stuff = new Array( '<li><a href="#">URL 1</a></li>', ...
JavaScript Random URL
Outputs one of the 5 urls r...
I needed 6 random(ish) bits...