Thank you for the comment!
Actually the level is generated everytime you click play or next level buttons.