FIX move rand_r to tree module for now

Simple build and link without an intermediate Cython module.