Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
4
Impact
~403 people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Jul
20
comment rand() gives same numbers again for a small range
What you're seeing is known as the Birthday Problem. If your random numbers are being converted to a range smaller than the natural range of the PRNG then the probability of geting two instances of the same number is much higher than you might think. Some time ago I wrote a blurb on this subject on Stackoverflow here.
Sep
24
awarded  Autobiographer
Aug
27
answered Best solution for a large database transaction
Feb
17
comment Stored Procedures a bad practice at one of worlds largest IT software consulting firms?
Bear in mind that most large I.T. consulting firms have a motive to maximise billable hours while keeping their arse covered. The old-timers with any clout in these firms also tend to be players and bureaucrats rather than techies. I'd take things like that from a consultancy firm with a grain of salt - I've gotten consultancy firms out of the shit on more than one occasion by fixing up their 'best' practice.
May
1
awarded  Editor
May
1
revised Is premature optimization really the root of all evil?
edited body
Jan
2
awarded  Teacher
Dec
30
answered Why the Select is before the From in a SQL Query?
Jul
29
awarded  Supporter
Nov
20
comment Perks for new programmers
Has anyone out there noticed how it's next to impossible to crack off a silent one when sitting on an Aeron?
Oct
17
answered Is premature optimization really the root of all evil?