I've recently added two new entries to the Code Generation Optimization Ideas page. As one can see there are many things that can improve the performance of the generated code.
I just made available a cluster with a pseudo-random generator that wraps the reference C implementation of Mersenne Twister.
Feel free to modify and extend as the wrapping is only here for integers.