well, i tried something like this
Code:
 
randomGen {
  set %theMatch 
  var %word = $1
  var %random = $2
  var %i = 1
  while (%i < $calc($len(%word) + 1)) {
    var %x = 1
    while (%x < $calc($len(%random) + 1)) {
      if ($left(%word,%i) isin %random) {
        set %theMatch %thematch $+ $left(%word,%x)
      }
      inc %x
    }
    inc %i
  }
  echo -a %theMatch
}
 

:P
didnt work all that good..


edit: oh my bad, i see what my rpoblem is :tongue:
how do i split up the letters one by one?

Last edited by xhine; 07/08/04 07:12 PM.