-
Hello everyone ... I'm struggling with creating an array dynamically with randomly duplicated values in it ... something like this
for(i=0;i<12;i++){
if(arr[i] != arr[i+]){
set (arr[i], i+random(12));
set (arr[i+1], i+random(12));
}
}
i need something like this
arr[0] = new Array(1,4,1,6,9,5,9,6,4)
.... etc
arr[n]= new Array(n1,n3,n9,....n3,n9,n1)
plz help me on this ... the logic is there but the implementaion is quite hard .. and the numbers should be in random ... thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|