Can I generat an ending using the logistic map equation?

Hello guys , i need an oppinion , i’m beginner in ue4 and i’m making a 2d paper game similar to The Binding of Issac . For the multiple ending i must use the logistic map equation (i’ll attach the image) and i don’t know how to do it (the project must be about chaos theory and the logistic map equation it’s part of chaos theory ) . You think that if a use C# editing i can somehow store the door thought my charater passing from level to level ? Or i can make some kind of gems / item that the character need to take in every level that he’s passing and in the end to be generated depending on the color/number of the gems . It’s a bit tricky but if you have and helpfull oppion please let me know . Thanks!

239977-logistic-map.png