• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/color.php
  • Класс: BitrixImColor
  • Вызов: Color::getRandomCode
static function getRandomCode()
{
	$colors = array_keys(self::getColors());

	return $colors[mt_rand(0, count($colors)-1)];
}