lundi 22 mai 2017

Finding the Seed of the rand() Function TI-84 Programming

I've done a lot of research on that TI-84 rand() function. It uses the L'Ecuyer's algorithm to generate pseudorandom numbers. I have an interesting case however.

If the rand() function is given the proper seed, it will always generate the same numbers. So, given the first random number that the rand() function generates, is it possible to find the seed of the function?

Let the variable X represent the unknown seed.

    X->rand
    rand->D
    Disp D

Output:

    0.114820491

Based off this information, is it possible to calculate the seed of the rand() function? Can you work backwards somehow from the TI-84's rand() algorithm?




Aucun commentaire:

Enregistrer un commentaire