Using the logistic map for a true/false chaotic behaviour

Hi is there any way to use the logistic map in a javascript function to get an unstable chaotic true/false return? I would like to have some function in my code that takes an iteration index as an input and produce a true/false statement following the logisic map behaviour with maybe some config (like r value, so if it’s near 4 you get more unstable behaviour while if you’re near r= 2 you get more stble results). I don’t want it to be a randomic true or false I want it to be cahotic like it follows a pattern that looks random but is not.

If you have any suggestion on how I can use the bifurcation diagram to do that it would be greatly appreciated!