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