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