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