Fill matrix diagonal with different values for each python numpy
<p>I saw a function <code>numpy.fill_diagonal</code> which assigns same value for diagonal elements. But I want to assign different random values for each diagonal elements. How can I do it in python ? May be using scipy or other libraries ?</p>