### Example of rand_seed() command

Posted:

**Tue Nov 27, 2007 7:49 am**Code: Select all

```
rand_seed( 0 ) //Start random generation from point 0
a1 = rand //move some random number to "a1"
rand_seed( 0 ) //Start random generation again from the same point
a2 = rand
//Now a1 is equal to a2
```

Code: Select all

```
rand_seed( 0 )
a1 = rand
a2 = rand
a3 = rand
rand_seed( 0 )
b1 = rand
b2 = rand
b3 = rand
//Now a1 = b1, a2 = b2, a3 = b3
```