For random numbers, I use: call _random (I think thats right, my current project dosn't use any random numbers, so I should look this up.) The output is stored to OP1, and is a random # between 0 & 1. This is just like the rand command in basic. Jeff Barrett "Old programmers never die. They just branch to a new address."