Added a maximum length to the random string generated by random command.