code blow up due to humongous for
first working version of random code gen - now cleaning up
hopefully final adempt for the random code thanks to sandro