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