@random was only producing odd numbers, which made Planetfall get into an infinite loop.