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