Created
January 4, 2012 19:36
-
-
Save chriseppstein/1561650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Sass::Script::Functions | |
| def random(max = Sass::Script::Number.new(100)) | |
| Sass::Script::Number.new(rand(max.value), max.numerator_units, max.denominator_units) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@serv @jeffbkk
Yeah add it to the end of your
compass.rbif you're using Compassand run
compass compile --forceor check out http://blog.codepen.io/2013/09/17/adding-random-function-sass/