generate_cor function

Generate correlation matrix