Allow random value generation via GUI. Minor fixes.