Random scripts for some Mechanical Engineering problems