Numpy argmax - random tie breaking : <p>In <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.argmax.html" rel="noreferrer">numpy.argmax</a> function, tie breaking between multiple max elements is so that the first element is returned.
Is there a functionality for randomizing tie breaking so that all maximum numbers have equal chance of being selected? </p>

<p>Below is an example directly from numpy.argmax documentation. </p>

<pre><code>&gt;&gt;&gt; b = np.arange(6)
&gt;&gt;&gt; b[1] = 5
&gt;&gt;&gt; b
array([0, 5, 2, 3, 4, 5])
&gt;&gt;&gt; np.argmax(b) # Only the first occurrence is returned.
1
</code></pre>

<p>I am looking for ways so that 1st and 5th elements in the list are returned with equal probability.</p>

<p>Thank you! </p>
