Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Random Sample

    Using the checksum of a newid as the seed in the rand function does work because the newid is reinterpreted for each row. The only time I'd do it was...

  • RE: Random Sample

    The only problem is that the rand function returns the same value for each row. Changing the seed value changes the value returned by the rand function, but it is...

  • RE: Random problems

    Peso (6/9/2009)


    And it's also well established that

    ABS(CHECKSUM(NEWID())) % 100

    gives random numbers between 0 and 99 with very high, good and even distribution.

    I like this solution - it is simpler than...

  • RE: Random problems

    I like this solution - it is simpler than mine.

Viewing 4 posts - 1 through 4 (of 4 total)