python -c 'import random; print(random.randint(0, 10**6 - 1))'
Call Python to import the random
package and use its random.randint
method to generate a random number in the inclusive range 0 to 999999.
Requires Python.
let N=0 N=N+10**{0..5}*${RANDOM:0:1}