WhileLoop and Infinite Loop

no as long as they are used correctly its not an issue, and loops are how you do procedural generation. your question is off topic though and should have been posted as its own question on the answerhub.