Task

If your system has a means to generate random numbers involving not only a software algorithm   (like the /dev/urandom devices in Unix),   then:

show how to obtain a random 32-bit number from that mechanism.

Related task
 Random_number_generator_(included)


func urandom() {
    const device = %f'/dev/urandom';
 
    device.open('<:raw', \var fh, \var err) ->
        || die "Can't open `#{device}': #{err}";
 
    fh.sysread(\var noise, 4);
    'L'.unpack(noise);
}
 
say urandom();    # sample: 3517432564