add array versions of randexp and export these functions