Example random spawning code