The DIM command is used to create an array. an array is simply a set of variables. For example try: DIM A[10] FOR I=0 TO 9 A[I]=RND(100) NEXT SORT A FOR I=0 TO 9 ?A[I] NEXT END This should create a random set of numbers, sort them, and finally display them.