In his signature nerdstyle, Stan created a formula in MATLAB (the student version of a mathematical and engineering calculation program) that would not only randomly generate a winner for the giveaway, but would also do a fun little Biggest Loser-style high-intensity number scroll. I was intrigued, and you should be too. Check out the video for some edge-of-your-seat action and awkward name shouting toward the end!

Once in class I spent the whole time typing “Why?” into Matlab to get back responses like “Because I said so.” Computer engineers think they are hilarious.

November 15, 2010 at 1:36 am

Matlab?!hmmpf

everyone knows the cool students use R

winner_list<-sample(c(1:31), 31)

for( i in 1:30){

print(winner_list[i])

}

print("The winner is:")

print(winner_list[31])

November 15, 2010 at 9:33 am

YAY! I usually never win! I’d like to take a minute and thank Stan because if it wasn’t for his nerdiness, I may not have won!

November 15, 2010 at 10:32 am

If you’ve already paid for MATLAB and use it in class, no sense in ditching it for R.

clear all

n=input(‘Number Applicants? ‘);

L=ceil(rand([n*2,1])*n);

for i=1:length(L)-1

beep

disp(L(i))

pause(i/n/5)

end

pause(1)

beep

disp(‘The winning number is’)

disp((L(length(L)))

November 15, 2010 at 1:26 pm

n=”Congrats”

beep

pause

L=”Wendy”

end

beep

Disp”I’m jealous”

beep

pause

Stan’s an awesome nerd

end

November 17, 2010 at 4:02 pm

OH MY GOD, I HATE MATLAB SO MUCH. SO SO MUCH.

Once in class I spent the whole time typing “Why?” into Matlab to get back responses like “Because I said so.” Computer engineers think they are hilarious.