could try: > >:rand->X >:(X*9)->X >:round(X,0)->X >:(X+1)->X >:If X=1 >:Then >:Goto 1 >:End > Of course you could some up that first part as 1+int(10rand)->x Just thought I'd throw that in Tomas ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com