# Array Need help!

**URL:** <https://forum.kirupa.com/t/array-need-help/77805>\
**Category:** Uncategorized\
**Created:** [January 30, 2005, 3:05pm UTC](https://forum.kirupa.com/t/array-need-help/77805 "2005-01-30T15:05:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silk](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@silk](https://forum.kirupa.com/u/silk)\
**Post date:** [January 30, 2005, 3:05pm UTC](https://forum.kirupa.com/t/array-need-help/77805/1 "2005-01-30T15:05:10Z")

</div>

deck = [“A1”, “B2”, “C3”, “D4”, “E5”, “F6”, “G7”, “H8”, “I9”, “J10”];  
roke = new Array();

for (i=0; i\<7+j; i++) {  
j = 0;  
k = Math.floor(random(10));  
karta=deck[k];  
roke\* = karta;

## }

this is my code.

how i have to write code (exp. if is the k=1 this is array B2, now is B2 in new array and i woud like delet B2 from deck array, so if will next time go “for loop” deck array will not have B2)

I hope you understand me

Silk~
