So Im trying to make a custom map generator for my game, so I use the randInt to generate 2 random numbers (X and Y) and I store them in variables. But per object, it need 2 variables and there arent enough variables to get the amount of objects that I want to be randomly spread. Can someone help me?

When you run out of variables A-theta, (including window variables and some statistic variables), you can use a List variable to solve your problem. Set up two lists like so:

```
SetUpEditor ⌊X
SetUpEditor ⌊Y
A→dim(⌊X
Ans→dim(⌊Y
```

Where A is the size of the list variable. You would then get elements in a list by adding an additional argument that points to the needed element:

```
9→⌊X(1)
4→⌊Y(1)
Disp ⌊X(1)
Disp ⌊Y(1)
```

This would display the value stored in the first element of |X, which is 9, and would do the same for |Y (displays the number 4).

Thanks! I dont know how list works yet, but its basically a custom variable for a program, right?

Basically, yes. The only restrictions you have is that the size of the list cannot exceed 999 and the elements can only be numbers.

A `list` is a set of values all contained in one variable, with references to each value. For instance if you were making a shopping list, you might have Eggs, Bacon, and Orange Juice on the list. You could represent that as {Eggs, Bacon, Orange Juice}. Now instead of objects, calculators use numbers. {1,2,3} {8,-5,3} and {2/10,cos(.38),rand(2)} are all lists. When performing operations on lists, the operation will be performed on each element separately unless you specify otherwise. For example if L1 is {1,2,3} then L1+1 would result in {2,3,4}, but L1(1)+1 would result in {2,2,3}.

Similarly, You can perform most operations with 2 lists. {1,2,3}+{3,4,5}={4,6,8}; {1,2,3}*{2,3,4}={2,6,12}.

You can do a lot with lists, but the lists page should help a lot

Thanks for the help everyone; I kinda understand how lists work now !:D

Or, it still works if you did this,

`SetUpEditor X,Y`

Yes. You can do any name of list you want, as long as it meets these requirements, or an error will be thrown:

- Can be 1-5 chars

- MUST start with A-Z,θ

Lists work the same as matrices, but matrices have rows & columns (obviously), and lists have just rows. You can do {2,5,6,8,6,3,3,34,5,5,…}, but lists have a limit of 999 sections, depending of what TI-Model you have.

When doing this,

{3,2}

You don't have to do {3,2→⌊LIST.

Instead, you can do

{3,2→LIST

There's really no difference, just takes away the "L" in front of it.

One list you should know that you can't archive is the list ⌊RESID, or an ERR:VARIABLE will be thrown. This list is a type that is reserved for the calculator. You may edit it and such, but you can't send nor receive it from another calculator.

The real Bio_Hazard1282

No problem! :Dx10000

The real Bio_Hazard1282