There's scripted story sections but the rng rooms are all in between them and are meant to be an abstract representation of her psyche and her life so in those 2 endings thats what it represents, you can get the other endings if the rng favours you and you don't get any of these rooms and then at the end you'll be presented with a choice which will branch off into which ending you get :> there are about 19 different rng rooms in particular and only 2 of them lead off to endings.