Move u01 draws into tuna_pre_cost

Removes random draws from algorithms.  Upside
is that it will simplify locking.  Downside is that
it uses __builtin_alloca.