7 kyu

Find the random seed

Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • tobeannouncd Avatar

    Haskell translation

    I've modified the description to make it more language agnostic and to address this issue

  • KayleighWasTaken Avatar

    This comment has been hidden.

  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • RealKenshiro Avatar

    Nice idea but the description is lacking import informations :

    1. The PRNG comes from the random library.
    2. It uses the first ten numbers generated after choosing the seed.
  • akar-0 Avatar

    This comment has been hidden.

  • tmxk Avatar

    Same issues mentioned before: (1). py2 cannot pass. (2). 0<=x<100 should be 0<=x<=100.

  • user9942438 Avatar

    This comment has been hidden.

  • theru Avatar

    There is no way to get back the seed itself. The seed is used to update the internal state of the random number generator, and it is not directly stored anywhere.

  • Chris_Rands Avatar

    This comment has been hidden.

  • anter69 Avatar

    Updated description, added example tests and approved the kata

    Cheers

  • sogr Avatar

    Maybe you have some mistake. random.randint[a, b], including both end points. In the kase of random.randint(1,100), even with the same seed, there are different sequence.

  • smile67 Avatar

    Your are not a friend of < or <=? Looks like "0<=n<10000" and range "0...100". So wrong description or code;-)...