UNPKG
jqbuild
Version:
latest (0.1.0)
0.1.0
A command line build tool for jQuery plugins.
github.com/cowboy/node-jqbuild
cowboy/node-jqbuild
jqbuild
/
examples
/
intro-outro
/
dist
/
jquery.ba-random.min.js
4 lines
•
252 B
JavaScript
View Raw
1
2
3
4
// jQuery Random - v0.1.0 - 6/13/2011
// http://benalman.com/
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL
(
function
(
$
){$.fn.
random
=
function
(
a
){
var
b=a?
this
.
filter
(a):
this
;
return
this
.
pushStack
(b.
eq
(
Math
.
floor
(
Math
.
random
()*b.
length
)))}})(jQuery)