PDFs can be used to manage javascript, such as the packages ocgtools, ocg-p, ocgx or ocgx2, which allow you to create interactive and clickable PDFs. The hyperref package allows you to insert URLs or HTML anchors.
On the model of these packages, is it possible to create an interactive PDF file with a "go" button that when you click on it generates a random number (with javascript)?


:(– Fran Sep 11 '17 at 17:12