dimanche 16 janvier 2022

Simulate randomly increasing number [closed]

Suppose we have a website that shows number of registered users but this number is simulated.

We could do this in back end by maintaining some variable and incrementing it at regular intervals. Front end service would just get this variable from backend.

I would like to do this without relying on back end. I am thinking of coming up with a non-decreasing function that maps time to number of registered users. But I do not want it to be linear or exponential function. I would like it to have a more complex shape so that it correctly simulates the randomness. Any ideas?




Aucun commentaire:

Enregistrer un commentaire