Question: I have UL in my page, and it is empty.
I start populating it with LI using javascript.

How can I use this newly added dynamic data in the asp.net in the postback phase?

that is because my submit button is asp.net control.
I do not want to use JS POST.

thanks

Answer: 
I would propose

```
1 + getrand100() % 20 

```

for the first case (20) and

```
(getrand100()%2)*100 + getrand100()

```

for the latter (200).
A general solution in Java.

```
 public static int rand(int min, int max) {
    int range = max - min + 1;
    int num = 1;
    do {
          num = num * 100 + getrand100();
    } while (num <= range);
    return min + num % range;
 }

```

Btw writing code on an iPhone isn't easy ;)