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