I may have misunderstood. My previous example will vary the random values. If what you want is one set of random values that repeats forever, this should do it. You can, of course, connect A, B, C, and D to sliders if you want.
A = 3;
B = 7;
C = 5;
D = 11;
f = Math.round(time/thisComp.frameDuration);
seedRandom(index,true);
period1 = Math.round(random(A,B));
period2 = Math.round(random(C,D));
t = period1 + period2 + 2
d = f%t;
if (d < period1){
0
}else if (d < period1 + 1){
random(100)
}else if (d < period1 + period2 + 1){
100
}else{
random(100)
}
Dan