improve layout, now using seeded randomness