MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.

descrip:
One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Self-Pimpin':
Member of an email list?
You need The Digest Handler!!


FOR ENTERTAINMENT PURPOSES ONLY!!! Back-up your data and always wear white.
URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* resume, mostly for Google * Regular Expression Introduction (copy)
* gpl xbrowser API for dhtml
* mulder (old css tutorial)
* Using CommonDialog in VB 6 * Free zip utils
* that hardware vendor review site I forget about is here * Javascript 1.5 ref
* Read the bits about the zone * w3c.org index of HTML 4.01 elements
* Giant ASCII Textifier * Quick intro to Javascript
* Editable Firefox Page * Parsing str's in VB6
email if ya gotta, RSS if ya wanna RSS
 
 
Thursday, January 19, 2012

Can the Math.random() command actually return a 0 or 1? - CodingForums.com:

Can the Math.random() command actually return a 0 or 1?


Fun thread. TL;DR: 0 yes, but more likely you win the lottery. 1 never, except for Safari and Opera in 2002, both of which screwed up their implementation of Math.random(). So if you get a one, it's not exactly your fault.

(Strangely, those two browsers gave 1 something reportedly like 1 in 35,000 runs, which is unbelievably often.)

Labels:


posted by ruffin at 1/19/2012 01:30:00 PM
0 comments


All posts can be accessed here:


Support freedom
Last year o' posts:



Powered by Blogger furthurnet.org