# Random numbers, variabel

**URL:** <https://forum.kirupa.com/t/random-numbers-variabel/6055>\
**Category:** flash\
**Created:** [September 28, 2002, 10:17am UTC](https://forum.kirupa.com/t/random-numbers-variabel/6055 "2002-09-28T10:17:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swed](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@swed](https://forum.kirupa.com/u/swed)\
**Post date:** [September 28, 2002, 10:17am UTC](https://forum.kirupa.com/t/random-numbers-variabel/6055/1 "2002-09-28T10:17:18Z")

</div>

Hi!

Could someone show me wath to change in this code?

I want different verison, one thats count from 10-19, 19-20 and so on…

Where do i change in the code?

* * *

checkDup = function () {  
for (j=0; j\<i; j++) {  
if (myArr\* == myArr[j]) {  
trace(“dup= a) myArr”+i+" = “+myArr\*);  
trace(“b) myArr”+j+” = "+myArr[j]);  
trace(“so recalculate!”);  
numPick();  
}  
}  
};  
numPick = function () {  
newNum = (Math.ceil(Math.random()\*91));

```
    myArr* = newNum;
    checkDup();

```

};  
bingoShuffle = function () {  
nbNum = 40;  
myArr = new Array();  
for (i=0; i\<nbNum; i++) {  
numPick();  
this[“b”+i].text = myArr\*;  
}  
};  
bingoShuffle();  
//trace(myArr);

for (i=0; i\<nbNum; i++) {  
this[“b”+i].text = myArr\*;  
//or \_root[“nb”+i].text = myArr\*;  
//or \_root.myMc[“nb”+i].text = myArr\*;  
}

* * *
