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