I am trying to use analogRead with floating pin to generate somehow random numners. The issue is that I always read 0. I am using the arduino Nano board.
The basic thing I am doing is reading the value to the seed function:
I suppose that although the pin is floating and so susceptible to noise, there might not be any noise so the pin isn't disturbed. What happens if you bring your hand near it, or touch it?
Unfortunately using the analogRead() is not a reliable way to gather entropy (randomness), it has been discussed many times and the only way to get "real"randomness is to use an external circuit.
So what you are really hoping for, is to generate enough static electricity by dragging your feet around on the carpet, for the analog pin to detect, but not enough static electricity to blow up the chip. Static electricity really doesn't work that way, it's a fundamentally stupid idea. Try putting on some plastic Crocs shoes, see if that works better for you.