Anyone have this problem ever?

Discussion in 'Databases' started by dave_bns, Dec 1, 2011.

  1. #1
    Hi,

    I was wondering if anyone ever had this problem with sql...

    Using a random query to get a random result, it gives me a random result I want until the 4th or 5th time I ask it and then it just duplicates teh last one endlessly ...

    Does anyone know why this might be?

    Thanks
     
    dave_bns, Dec 1, 2011 IP
  2. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #2
    Your random number generator seed has degenerated into the same number every time. You need to set your random number generator parameters.
     
    mmerlinn, Dec 2, 2011 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    Can you post the code and how you're running the script. There are a number of built-in caching mechanisms in everything from a web browser to a database server. My guess is that assuming the script isn't broken, there something caching a result.
     
    jestep, Dec 2, 2011 IP
  4. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can you give us the code? Your trying to query though
     
    Spudster, Dec 2, 2011 IP