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