Something like: sourcearr = array(); for(i = 0; I.
I forgot to say that each number is repeated 4 times, it isn't just random. – A New Chicken Jan 9 '10 at 4:44 So there is nothing such as: Enumerable. Range(1,36)?
– A New Chicken Jan 9 '10 at 4:53 Nope, not in JavaScript. – Eilon Jan 9 '10 at 4:57.
Assuming you don't care about the distribution, just store the results of Math. Floor(Math.random()*36) + 1 for each element of the array.
This won't repeat each number 4 times however. – jvenema Jan 9 '10 at 5:11.
How's about: var source = array(); var shuffled = array(); for(var i=0;i 0 ) { var index = Math. Floor(Math.random()*source. Length); var element = source.
Splice(index,1); shuffled. Push(element); }.
How to generate a random number in JavaScript. Dice, random image script, or random link generator. Range 1 to x, where x is any integer >1.
Certainly is not. Where 11 dictates that the random number will fall between 0-10. The range to, say, 100, simply change 11 to 101 instead.
Is used in the above code.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.