Why we are suggested to use $urandom rather than $random

In reply to jianfeng.he:

Actually, in our code most of the time, we deal with positive integers.
$random might get you a negative number. But $urandom won’t because it’s unsigned.
That’s why we prefer $urandom.