In reply of your second question the analog sensors have a slight thing where there is a variation of the value so that it doesnt seed the same thing twice. I not that good at explaining it its mentioned in the playground thing about random numbers.
Not sure what you mean in the first comment. Little explaining would ne nice. As im not the best coder only been coding for only 2 weeks.