Hi there,
Hope to be in the right forum, please excuse me if I am not...
Also sorry if my title is not very clear, but I don't know how to tell :
Let's say I have a given array :
[a,b,c,d,e,f,g,h,i,j,...........x,y,z]
I need from this a new random array with a given number of values, let's say I want to extract 10 random values, which would give for example :
[a,a,r,t,s,s,u,x,y,y]
Can anyone tell me how to achieve this ? Please note I have strictly no skills in js yet, my goal is to create an event which would create this random array and store this in a variable (doesn't need to be persistent) in order to use in later in another event.
Hope I'm clear enough, and hope someone can help me ! Thanks in advance for your help !
Hope to be in the right forum, please excuse me if I am not...
Also sorry if my title is not very clear, but I don't know how to tell :
Let's say I have a given array :
[a,b,c,d,e,f,g,h,i,j,...........x,y,z]
I need from this a new random array with a given number of values, let's say I want to extract 10 random values, which would give for example :
[a,a,r,t,s,s,u,x,y,y]
Can anyone tell me how to achieve this ? Please note I have strictly no skills in js yet, my goal is to create an event which would create this random array and store this in a variable (doesn't need to be persistent) in order to use in later in another event.
Hope I'm clear enough, and hope someone can help me ! Thanks in advance for your help !