Click here to Skip to main content
15,905,867 members

Comments by mappleleaf (Top 4 by date)

mappleleaf 27-Nov-17 21:23pm View    
Thank you so much Piebald for thelp. hmm So, .5 - Math.random(); is the same as Math.random() -.5 and that returns numbers between -.5 and +.5 right, but what is the purpose of passing an element in the function it it is not part of the random equation of '.5 - Math.random();'
mappleleaf 21-Nov-17 10:27am View    
Hello Iqra, I hope my question is clearer. thanks for the help
mappleleaf 30-Oct-17 5:11am View    
Thank you for indenting my code, but I am still not sure of how to trace it to get the total number of occurrence of 5 and I dont understand the purpose of searchfirst
mappleleaf 25-Oct-17 12:16pm View    
Thanks, you are star! You are correct, I was overthinking it.