Sha256: 62295f5d7fd859d42d8d2fa04021bdd9679eafb1b62f1d91377c616f31678357
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
/* * JQuery Random Plugin * * Adds two random number functions to jQuery - * one to find a random number and one to find a random number between a max and min limit. * * Version 1.0 * * by Christian Bruun - 23. jan 2009 * * Like it/use it? Send me an e-mail: rockechris@rockechris.com * * License: None. Use and abuse. Comes with no warranty, of course! * * * Usage: * $.random(int); * $.randomBetween(min, max); * * Code found at: * http://www.merlyn.demon.co.uk/js-randm.htm * */ jQuery.extend({ random: function(X) { return Math.floor(X * (Math.random() % 1)); }, randomBetween: function(MinV, MaxV) { return MinV + jQuery.random(MaxV - MinV + 1); } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aced_rails-0.1.2 | vendor/assets/javascripts/jquery.random.js |
aced_rails-0.1.1 | vendor/assets/javascripts/jquery.random.js |