Python 3.13 random CLI
Starting with Python 3.13 all of the following will generate a random integer between 1 and N10 inclusive:
python -m random N10
python -m random -i N10
python -m random --integer N10
Previously you would also do it with -c as mentioned at https://unix.stackexchange.com/a/140767/32558 but now it is cuter.
It doesn't seem to be possible to change the lower bound (1) with this method just yet.
Documented at: https://docs.python.org/3/library/random.html#random-cli
Tested on Python 3.13.3, Ubuntu 25.04.