diff --git a/lib/less/functions.js b/lib/less/functions.js index 6eb34bac8..e62963611 100644 --- a/lib/less/functions.js +++ b/lib/less/functions.js @@ -121,6 +121,12 @@ tree.functions = { return new(tree.Color)(rgb, alpha); }, + randomcolor: function() { + return this.rgba(Math.random() * 255, Math.random() * 255, Math.random() * 255, 1.0); + }, + pickrandom: function() { + return arguments[Math.floor(Math.random() * arguments.length)]; + }, greyscale: function (color) { return this.desaturate(color, new(tree.Dimension)(100)); },