Update udprand.c

my implementation