Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Sass::Script::Functions
- def random(type)
- if type.value == "color"
- Sass::Script::Color.new(:red => rand(255), :green => rand(255), :blue => rand(255))
- else
- Sass::Script::Number.new(rand(100))
- end
- end
- end
Add Comment
Please, Sign In to add comment