- Impact
- 18
Hi,
I need to write a script that will show a string 50% of the time and another string the other 50% of the time, but not always one after the other.
ie: I don't want someone to be able to anticipate which one is coming next.
so, can anyone help me randomise two strings, lets call them str1 and str2? I just don't know very much about randomisation. (well, nothing in fact)
They can't be bias though, the probability of either showing up should be 50%.
Thanks
Tom
I need to write a script that will show a string 50% of the time and another string the other 50% of the time, but not always one after the other.
ie: I don't want someone to be able to anticipate which one is coming next.
so, can anyone help me randomise two strings, lets call them str1 and str2? I just don't know very much about randomisation. (well, nothing in fact)
They can't be bias though, the probability of either showing up should be 50%.
Thanks
Tom
















