I'm trying to create a random 6 digit code. If I generate a random number between 0 and 999999 and then pad it with zeros to make it 6 digits is it random or is it biased in some way?
E.g It generates 750 so it is then padded to 000750 It generates 28149 so it is padded to 028149
Does this achieve the same as generating a random integer between 0 and 9 six times and then putting the numbers together in a string?
Thanks.