well you could sort-of write your own random number generator without using a single branch or loop, but then you could skip using rand5 anyway.