LOGCLEAR
TFReadArr("colors.txt",$colors_arr)
$count = RND(1,137) // Количество цветов
LOGWRITE ("Количество выбранных цветов - ", $count)
LOGWRITE ("------------------")
FOR($a = ARRSIZE($colors_arr) - 1, $a > -1, -1)
$n = RND(0,$a)
LOGWRITE ($colors_arr[$n])
$colors_arr[$n] = $colors_arr[$a]
$del = ARRPOP($colors_arr)
INC($count,-1)
IF($count = 0)
$a = 0
END_IF
END_CYC
HALT