!distribute item ,, into randp,click1,click2
 !if $step>=$stepcnt
  !if $menutype!=solution
   error=no_redo
  !endif
 !else
  !advance step
  l=!line $step of $steplist
  !distribute item $l into type,x,y
  !if $type=hide
   h=!char $y of $(hide$x)
   !if $h=+
    h=-
   !else
    h=+
   !endif
   hide$x=!replace char number $y by $h in $(hide$x)
  !endif
  !if $type iswordof point line circle
   $(type)cnt=$x
  !endif
  !if $type iswordof random middle
   pointcnt=$x
  !endif
  !if $type=midper
   linecnt=$x
  !endif
 !endif
