Home > Mobile >  I want to run a random number generator online and it show random number every 1min automatically
I want to run a random number generator online and it show random number every 1min automatically

Time:12-29

If i want to run PRNG online in webserver which will display Random number every one min automatically and the generated number should store in MySQL database with timestamp. In which web programming language can i achieve this

Give some idea guys.

CodePudding user response:

You can write a program like that in many languages, like nodejs, php, dart or even c#. It depends on what you want to do with it afterwards. If you only want to display a number on a page and store it in a database, code it with nodejs or php.

CodePudding user response:

You can write a program like this in any language, but I think javascript is a good choice. You can make use of the following libraries/features:

  • random (PRNG)
  • the date type (for getting the time of generation)
  • fetch or axios (for making the POST request to your backend server)
  • nodeJS (server)
  • expressJS (lets you run javascript on the server)
  • MYSQL
  • Related