Fixed Bug: Not seeding random generator

Signed-off-by: Arutsuyo
Fixed bug: Not setting while loop bool before loop.

Signed-off-by: Arutsuyo