randint and random pip command code example Example: python install random library sudo pip3 install random2