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