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