Fixed the circle generation and random array generation