101 reputation
bio website derek1906.site50.net
location United States, Hong Kong
age 20
visits member for 1 year, 9 months
seen Jul 15 at 23:36

JavaScript is quite an amazing language:

true / (true - true) = +Infinity

Relevant: http://i.stack.imgur.com/ssRUr.gif

function getRandomNumber(){
    return 4;  //chosen by fair dice roll.
               //guaranteed to be random. 

Random by definition means there is no obvious pattern. This time you get four, the next time you also get four, but you can never be sure the next next time you will also get four! (This proves that it is definitely random.)

"Everybody stand back, I know regular expressions!" ─ xkcd 208


This user has not answered any questions
This user has not asked any questions
This user has not participated in any tags
Stack Overflow 31,303 rep 2185128
Meta Stack Exchange 594 rep 412
Mathematics 337 rep 114
Chinese Language 285 rep 16
Area 51 270 rep 5

1 Vote Cast

all time   by type  
1 up 1 question
0 down 0 answer