ref: de8580ed9f8fa2d34ae01f5b73bb14263322824a dir: /sys/src/libc/port/rand.c/
#include <u.h> #include <libc.h> int rand(void) { return lrand() & 0x7fff; }