Replace EE_RANDOM global variable with ee_random local variable