```
# random_numbers_labels_00
# random numbers.
# --- method 1
# pick a range of numbers for random values
input highest_number = 6;
input lowest_number = -2;
def rng = (highest_number - lowest_number + 1);
def rand = floor(lowest_number + (random() * rng));
addlabel(1, "------" , color.black);
addlabel(1, "random numbers, " + lowest_number + " to " + highest_number , color.cyan);
addlabel(1, " >>> " , color.cyan);
addlabel(1, rand[19], color.yellow);
addlabel(1, rand[18], color.yellow);
addlabel(1, rand[17], color.yellow);
addlabel(1, rand[16], color.yellow);
addlabel(1, rand[15], color.yellow);
addlabel(1, rand[14], color.yellow);
addlabel(1, rand[13], color.yellow);
addlabel(1, rand[12], color.yellow);
addlabel(1, rand[11], color.yellow);
addlabel(1, rand[10], color.yellow);
addlabel(1, "-" , color.cyan);
addlabel(1, rand[9], color.yellow);
addlabel(1, rand[8], color.yellow);
addlabel(1, rand[7], color.yellow);
addlabel(1, rand[6], color.yellow);
addlabel(1, rand[5], color.yellow);
addlabel(1, rand[4], color.yellow);
addlabel(1, rand[3], color.yellow);
addlabel(1, rand[2], color.yellow);
addlabel(1, rand[1], color.yellow);
addlabel(1, rand[0], color.yellow);
addlabel(1, " <<< " , color.cyan);
# ------------------------------------
# --- method 2
input spacer = no;
addlabel(1, "------" , color.black);
#DefineGlobalColor("color2", CreateColor(128, 0, 128));
DefineGlobalColor("color2", color.light_gray);
# put this code in for a color, GlobalColor("color2")
# qty of colors
input number_qty = 10;
input start_number = 1;
def end = start_number + number_qty -1;
addlabel(1, number_qty + " random numbers, starting at " + start_number , color.cyan);
# create random numbers, 1 to 10
def c = floor(random() * number_qty) + start_number;
addlabel(1, c[9], GlobalColor("color2"));
addlabel(1, c[8], GlobalColor("color2"));
addlabel(1, c[7], GlobalColor("color2"));
addlabel(1, c[6], GlobalColor("color2"));
addlabel(1, c[5], GlobalColor("color2"));
addlabel(1, c[4], GlobalColor("color2"));
addlabel(1, c[3], GlobalColor("color2"));
addlabel(1, c[2], GlobalColor("color2"));
addlabel(1, c[1], GlobalColor("color2"));
addlabel(1, c[0], GlobalColor("color2"));
addchartbubble(1, low*0.997, c, GlobalColor("color2"), no);
#
```