<updated random array generation and error calculation>