- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
You get to sit on your arse all day eating donuts too
Admin
Yeah, don't keep us hanging like this. We need to know.
Admin
Admin
I had a pretty good idea what this one was going to be just by reading the title. Back in my very early programming days -- I think I had just discovered loops -- I noticed that the RNG in my programming language returned the same sequence every time. My fix: randomly skip over the first X values so I could at least start at a different place in the sequence. Didn't even finish coding it before I realized nope, that's not it.
Admin
Admin
wat....
wat.
Admin
Not if you like job security, fresh air, benefits, annual pay raises, bribes or power trips.
Admin
What's with all the hatred toward officers?
They put their lives on the line almost every day for your safety. Yes, you - the ones with bad attitudes.
Captcha: "vindico" - someone who is vindictive, e.g., a TDWTF poster talking about cops.
Admin
(Where M and N were provided before each run by the jury commissioner.)
Curiously, after just a few runs my program selected me!
Admin
I hope he added functionality to ensure he would only ever get allocated good jobs.
Admin
The rightful role of law enforcement is to help victims pursue justice, not to bury us with micromanagement of victimless activities and stomp around on a power trip trying to control everyone and everything in sight.
Oh, yeah, and the average cop is in no more danger than a construction worker, liquor store owner, factory grunt or any of a thousand other slightly hazardous jobs.
Admin
Well, if you add enough random results, the result becomes normally distributed. TWTF is that it should be applied multiple times.
Admin
Cops in my town make over 100k a year for busting drunk's skulls in. Sign me up tomorrow!
Admin
Admin
Easy, you number the sides from 0 through 5.
Admin
Sometimes good numbers go bad, which is why you need Internal Affairs.
Admin
Admin
Admin
You forgot the Decaeder ;)
Admin
In fact, the basic`s random algorithm is poor, it dont generate equaly distributed numbers, if your take the sum of probabylities you can enhance its distribution equality, but you need to iterate more times. The algoritims is wrong, but is not an wtf at all.
Admin
I can't help but wonder if when the average young man joins the police force, if he doesn't have fantasies of single-handedly foiling an armed robbery, or rescuing a small child from a burning car, or similar heroics. Then he's assigned to hand out tickets to people who don't quite come to a complete stop at the stop sign.
My son-in-law is a cop. He tells me he spends most of his time driving drunks home. I think his most exciting case was when a woman called 911 and demanded that they arrest her husband. It turned out that she had told him to pick up a gallon of milk on his way home and he hadn't done it.
Admin
I think the reason why they don't let me carry a gun on the job is that they know I often have meetings with users who imagine that they know how to design a database, and management is afraid of what might happen.
Admin
CAPTCHA: dolor (sit amet etc.)
Admin
Then how do you roll 11 or 12?
Admin
Admin
I'll admit I'm not a craps expert, but rolling a 1 will probably mean the house gets your money. And of course all your bets like "hard six" that rely on two dice being present... the house wins those bets too.
So they might be surprisingly receptive to your idea...
Admin
They're playing a quick game of Good Random, Bad Random to make the perp sweat a bit.
Admin
No, no, Officer #5 is still alive.
Admin
That'd be a trick, since it's not.
Can't roll a 1 with 2 six sided, and six sided outcome maps a bell curve, where as a 12 sided dice would be linear.
Admin
XD.
I heard that the Baltimore PD Homicide unit ordered a customized version of this app. The major difference was that iGoodRandom and iBadRandom were consolidated into the array iBadRandom().
Admin
This remind me of some code I found in our code base recently which required a unique identifier to be assigned to tasks that are generated on a distributed system, the code to produce this identifier was:
So I suggested to the original developer that we are quite likely to see some collisions here, if your going to use an int you at least need a bigger range. So the code was changed to:
Well, I got what I asked for! :D
Admin
Admin
Please tell us how You roll 1 with two six sided dices...
Admin
... glad you joined the party, someone already said that. Oh and dice is already plural. :P
Admin
For some purposes, the built in Rand() function isn't good enough - especially if it generates a repeatable sequence of 32 bit numbers and you need something unpredictable to the level needed for secure cryptography.
At the risk of adding something useful to this discussion, I cite RFC 1750, Randomness Recommendations for Security.
That (and the now obsolete RFC 822) are the only two RFCs I can cite by number without looking up.
Admin
I asked my local Dungeon Master, and Mistress Mona had some rather interesting suggestions.
Admin
Admin
Admin
Shortly after, people notice the "random" schedule assignments seem a lot less predictable. The boss examines why this is, sees that Brian has sabotaged his clever SuperRand function and replaced it with the standard, biased random function (and he must have done this deliberately since the comment explains the function's purpose) and fires him on the spot.
Admin
This article reminds me of dilbert's adventures in accouting.
http://dilbert.com/strips/comic/2001-10-25/
Admin
+1
awsome movie (still)...
Admin
Admin
No, I think he's right on the money (shot)... :)
Admin
The probability distribution of two six-sided dice doesn't come close to a bell curve (see here). Now, the probability distribution of N dice approaches the normal distribution as N->infinity (and for even N=10 or so, it's close), but that's different.
Admin
this comment does not produce true comment. adding comments together will improve true commentivity by
Admin
YDMV (Your distribution may vary)
Admin
Dumb question... Do you get a gaussian distribution from rolling two 6-sided dice?
Admin