Project 11 uses a tilt switch but the tiltswitch is broken because it didn't fit properly. My hunch is the copper arms got pushed in trying to make it fit so I've had to improvise. So instead I'm using a simple button instead in the same place, and the same code.
Works fine but erm it's actually not especially random. The first value generated by random() is always the highest value of the array. Is this because the button changes what happens or is this some flaw in random()? After the first value it's random but the first is never random with this sketch. Does this happen using the proper tilt switch as well?
Can anyone explain this?