tweak recompile.sh and default random generator setup code