Replaced arc_random_uniform with rand temporarily to eliminate errors