mercredi 10 juin 2015

Random Numbers Generator based on Current Time and Birth Date

I am starting to learn JavaScript and I found this article: http://ift.tt/1JEyFMA

I liked the idea of a custom seed number generator but I for the love of Thor cannot figure it out, I really need a practical example done with pure javascript or a library like jQuery if it's easier.

Here we go:

So what I want is to generate 10 different numbers sepparated by "-" (minus), each number with the range of 1-50 and I would like the seed for each number to be made up by multiplying 2 things:

  1. the current time in as much as a bigger number sequence as you can get it (with a delay of 1 second for each number so the time will be different)
  2. your birth date (from 3 select inputs)

[!] Also I want to know how we can animate the generation of these 10 numbers in different ways, like... for example the animation of old train station Arival/Departures mechanical displays, or like different HTML5 canvas particle techniques or CSS3 or anything really. - This can be done in another question if you think it's too much.

If you are able to help me out with this I will be so very forever grateful!

Thank you!




Aucun commentaire:

Enregistrer un commentaire