BUGFIX: pass correct value to draw_rand_i