quote:
Originally posted by Volv
quote:
Originally posted by CookieRevised
Actualy foaly's method is not going to work
It works perfectly fine for generating the random number without repetition until 10 others have been selected.
sorry for missing the recursive bit.
quote:
Originally posted by Volv
I already said this in the edit about 8 hours ago =/
quote:
(though I didn't posted this yet because I was at work all day)
quote:
Originally posted by Volv
you shouldn't be dissing people's suggestions without first understanding them
ermm.... first of all I'm not dissing anything, I'm trying to explain things. Big difference... Second, yes, I missed the recursive bit of foaly's method, but that is still not dissing or not understanding stuff. Seeing all the stuff I wrote in this thread I think it is clear I understand how the suggested stuff works. In fact, in that same first post of mine you quoted from, I also explained foaly's method and what disadvantage it has. The reason I missed the recursive bit was not because I don't understand what he wrote, it was because it I saw what "method" he used, not what exact "code" he wrote (hard to explain though).
If I would be dissing stuff I wouldn't take the hours of time I already put into this to explain stuff... I would simply say it is crap or something (and thus wouldn't say anything at all)...
:/
quote:
Originally posted by stu
Ok, true enough, if I want to take the extra time to change that now, and each future one as I add it.
You don't need to change all your saved files, you can do it inside the code when you create the array... If you read lines from a "jokes" file, add the smilie, if it is from a "lyrics" file, add the note, etc...
quote:
Originally posted by stu
Ok, so I got it to display a lyric. when the lyric is chosen, it is removed from the array, and added into arrPrevious (but it only seems to stay there for one lyric, see debuging). After 10 lyrics though, they dont get added back into the original array. Here is what the script debugger shows.. As you can see, my Text array consists of 12 Tests..
You've not copied the code exactly as I put it (or you changed stuff too much or in the wrong way)...