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