fixed the random number part, seeded from analog0 - now actually works