public static DMatrixRMaj diagonal ( int N , double min , double max , Random rand ) { return diagonal ( N , N , min , max , rand ) ; }
Creates a random diagonal matrix where the diagonal elements are selected from a uniform distribution that goes from min to max .