src/hft/scripts/misc/misc.js
function(opt_randFunc) {
    var randFunc = opt_randFunc || randInt;
    var strong = randFunc(3);
    var colors = [];
    for (var ii = 0; ii < 3; ++ii) {
      colors.push(randFunc(128) + (ii === strong ? 128 : 64));
    }
    return "rgb(" + colors.join(",") + ")";
  }
function(opt_randFunc) {
    var randFunc = opt_randFunc || randInt;
    var strong = randFunc(3);
    var colors = [];
    for (var ii = 0; ii < 3; ++ii) {
      colors.push(randFunc(128) + (ii === strong ? 128 : 64));
    }
    return "rgb(" + colors.join(",") + ")";
  }
function ( opt_randFunc ) { var randFunc = opt_randFunc || randInt ; var strong = randFunc ( 3 ) ; var colors = [ ] ; for ( var ii = 0 ; ii < 3 ; ++ ii ) { colors . push ( randFunc ( 128 ) + ( ii === strong ? 128 : 64 ) ) ; } return "rgb(" + colors . join ( "," ) + ")" ; }
get a random CSS color
@param {function(number): number?) opt_randFunc function to generate random numbers
@return {string} random css color
@memberOf module:Misc
get a random CSS color