If your thoughts are centered on Brahman you will not be reborn, but will know everlasting bliss.
If your thoughts at the moment you die are centered on what might have been, on vain regrets, you will live it all again – but perhaps not do it all the same again.
If your thoughts are centered on a woman you will be reborn as a woman.
If your thoughts are ones of fear and trepidation, you will be reborn as a fearful, timorous beast – a deer or a mouse, or a little bird.
If you are full of anger, you will be reborn as a tiger – or a snarling dog.