blocks_common/colour.js
function randomColour() {
  var num = Math.floor(Math.random() * Math.pow(2, 24));
  return '#' + ('00000' + num.toString(16)).substr(-6);
}
function randomColour() {
  var num = Math.floor(Math.random() * Math.pow(2, 24));
  return '#' + ('00000' + num.toString(16)).substr(-6);
}
function randomColour ( ) { var num = Math . floor ( Math . random ( ) * Math . pow ( 2 , 24 ) ) ; return '#' + ( '00000' + num . toString ( 16 ) ) . substr ( - 6 ) ; }
Pick a random colour.
@return {string} #RRGGBB for random colour.
Pick a random colour .