why rand? why not just a counter from 0?