>>6707856I'm by no means an expert but I'll give my two cents on the subject. As I understand it, you can use zooper for this, but it will take very long and be an overall tedious task.
Zooper does have a random integer generator, and it generates a number between 0 and 1. Just use int((random())*(Top most number, exclusive)
So if I did int((random())*(10) it will give me 10 numbers between and including 0 and 9. It will NOT go up to 10. Now the problem is that Zooper doesn't have nested if structures, and that means anything more than two or three if statements are going to take forever.
This is why I think you should just switch to KLWP. It's faster and more intuitive, and overall better in terms of versatility. It can look a bit daunting to learn, but honestly it didn't take me more than an hour or two of looking things up to understand it.
If you do use KLWP, do this:
Set up a global variable called rng, its formula will be "$mu(rnd,0[Or whatever you want the lowest threshold to be], 3[Same except higher threshold])$"
So "$mu(rnd,0,2) gives the numbers 0,1, and 2.
Now make the text and for its formula do:
"$if(df(ss) != -1, if(gv(rng)=1,apples,if(gv(rng)=2, bananas,if(gv(rng)=0,cookies))))$"
"$if(df(ss) != -1" checks every second if the current second is not equal to -1. This is always true, but the whole point of this part is to make sure that the clock updates every second. You can change it to every minute or every 5 hours or whatever other time you want.
"if(gv(rng)=1,apples"
If the random number generator gave us a 1, the text says apples.
"if(gv(rng)=2,bananas"
If the random number generator gave us a 2, the text says bananas.
"if(gv(rng)=0,cookies"
If the random number generator gave us a 0, the text says cookies.
Here is a webm that shows this in action(don't mind the other stuff, just look at the clock with seconds on it and the text).