Random Word Generator w/ No Repeats

Hey JD,

Thanks heaps for the response. It definitely seems like it’s repeating less, which is great! But it still seems like it’s repeating.

I am using both:

export function button41_click ( event ) {

const ArrayList =
[
‘1’ ,
‘2’ ,
‘3’ ,
‘4’ ,
‘5’ ,
];

    **const**  randomIndex  =  Math . floor ( Math . random () * ( ArrayList . length )); 
    $w ( '#text48' ). text  =  ArrayList [ randomIndex ]; 
    $w ( '#text48' ). text  =  ArrayList . splice ( randomIndex , 1 )[ 0 ];  

}

and

export function button41_click ( event ) {

const ArrayList =
[
‘1’ ,
‘2’ ,
‘3’ ,
‘4’ ,
‘5’ ,
];

    **const**  randomIndex  =  Math . floor ( Math . random () * ( ArrayList . length )); 
    $w ( '#text48' ). text  =  ArrayList . splice ( randomIndex , 1 )[ 0 ];  

}

In my testing and it doesn’t seem to be doing anything different.

Thanks again for any help you can give.