Friends, the contest is over! The winning number was 3, picked by R. Schumacher. Thanks everybody for joining the contest!
'ello, ladies and gentlemen, boys and girls, ducks and mallards, children of all ages! It is time for organizing another amazing community lottery, our beloved duck giveaway 2016! Quack!
The prize
The prize will be a lovely duck! Not a real one, I am afraid (note to self: organize another lottery with real ducks in the future), it will be a hand puppet duck:
Lovely, isn't it?
Again, why a duck? Why not a lion?
As I mentioned in the thread linked here, I always like to provide examples with ducks when I write answers. To my surprise, the theme got a very positive feedback from the community and it spread to everybody. Of course, a lion would be better, but hey, it's free! And it's a duck! :)
Why a hand puppet?
This will be our second lottery offering a duck puppet and I still have absolutely no idea. But since I got this duck again, I thought it would be a good idea to start a contest! :)
Rules
Rules from last lottery still apply:
To win the duck you must guess a number in the range 1-200. The first person who guesses the right number gets the duck.
Contestants may submit 2 valid guesses.
Please post your guess as an answer to this meta question, not as a comment.
Contestants must have been a member of TeX.sx before 1 March, 2016.
Two additional mentions:
If two or more people choose the same number, only the oldest entry will be considered. The other guesses will be automatically disqualified.
If you win the contest, I will need your real name and address for shipping and customs purposes (you can contact me through email, so only I will have privileged access). If you seek anonymity, we advise you to not enter this contest.
Please don't forget to edit the punch card with your numbers.
The lottery
As seen in the last lottery, I'll use the following code to pick the winner (special thanks to the awesome LaTeX Project for LaTeX3):
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{expl3}
\usepackage{xparse}
\usepackage{pgf}
\pgfmathsetseed{\number\pdfrandomseed}
\ExplSyntaxOn
\prop_new:N \g_duck_contest_prop
\int_new:N \g_duck_contest_upper_limit_int
\bool_new:N \l_duck_contest_winner_bool
\bool_set_false:N \l_duck_contest_winner_bool
\tl_new:N \l_duck_contest_winner_tl
\int_new:N \l_duck_contest_winning_number_int
\NewDocumentCommand { \person } { m m }
{
\clist_map_inline:nn { #1 }
{
\prop_if_in:NnTF \g_duck_contest_prop { ##1 }
{
Hey! ~ #2 ~ wants ~ to ~ be ~ naughty! ~
The ~ number ~ ##1 ~ was ~ already ~ chosen! \par
}
{
\prop_gput:Nnn \g_duck_contest_prop { ##1 } { #2 }
\int_gset:Nn \g_duck_contest_upper_limit_int
{
\int_max:nn { \g_duck_contest_upper_limit_int } { ##1 }
}
}
}
}
\NewDocumentCommand{ \winner } { }
{
\bool_do_until:Nn \l_duck_contest_winner_bool
{
\pgfmathrandom{1, \g_duck_contest_upper_limit_int}
\prop_get:NoN \g_duck_contest_prop { \pgfmathresult } \l_duck_contest_winner_tl
\quark_if_no_value:NF \l_duck_contest_winner_tl
{
\bool_set_true:N \l_duck_contest_winner_bool
}
}
\int_set_eq:NN \l_duck_contest_winning_number_int \pgfmathresult
\l_duck_contest_winner_tl
}
\cs_generate_variant:Nn \prop_get:NnN { No }
\NewDocumentCommand{ \winningnumber } { }
{
\int_to_arabic:n \l_duck_contest_winning_number_int
}
\ExplSyntaxOff
\begin{document}
% add yourself here
% ==============================
% For example, in the following line
% I picked 1 and 27, but I'm not
% participating in the contest :)
% \person{1,27}{Paulo Cereda}
\person{5,29}{Ulrike Fischer}
\person{42,108}{Christian Hupfer}
\person{0,201}{David Carlisle}
\person{1,200}{egreg}
\person{88,97}{yo'}
\person{6,28}{Matsmath}
\person{17,23}{Martin Schröder}
\person{13,111}{cfr}
\person{50,150}{Werner}
\person{199,91}{Kurt}
\person{133,55}{Arun Debray}
\person{123,132}{A Feldman}
\person{2,198}{Peter Grill}
\person{52,190}{Paul Gaborit}
\person{7,70}{Henri Menke}
\person{8,63}{Ignasi}
\person{84,157}{Sigur}
\person{18,67}{EngBIRD}
\person{131,68}{percusse}
\person{119,120}{Marijn}
\person{101,102}{runartrollet}
\person{80,112}{Alan Munn}
\person{113,86}{barbara beeton}
\person{3,197}{R.\ Schumacher}
\person{16,109}{Przemysław Scherwentke}
\person{64,144}{Mico}
\person{57,167}{ppr}
\person{4,76}{René B.\ Christensen}
\person{161,33}{Rmano}
\person{26}{Davïd} % pick another number
\person{22,171}{Claudio Fiandrino}
\person{9,11}{marczellm}
\person{39,196}{ebo}
\person{19,99}{Alenanno}
\person{187,115}{JP-Ellis}
\person{125,147}{silvascientist}
\person{128,32}{Mathias711}
\person{191,192}{azetina}
\person{41,43}{jknappen}
%\person{31,62}{Emre} % user does not meet criteria
\person{122,175}{mvkorpel}
\person{48,53}{martin}
%\person{53,187}{Penbeuz} % both numbers were taken
\person{69,96}{Saravana Kumar}
\person{38,77}{daleif}
\person{142,184}{Romain Picot}
\person{10,100}{Kevin}
\person{179,40}{carnendil}
\person{21,12}{Jon Mark Perry}
\person{92,90}{Canageek}
\person{93,105}{Ethan Bolker}
\person{167,103}{Saz} % 167 was taken
\person{20,46}{Vadim}
\person{83,98}{MattAllegro}
\person{165,166}{Douba}
\person{31,118}{ArTourter}
\person{121,141}{Azor-Ahai}
\person{74,193}{Diaa Abidou}
\person{51,127}{rekire}
\person{24,89}{Thoge}
\person{135,155}{jat255}
\person{61,172}{Kevin}
\person{37,73}{John}
\person{65,47}{Matthew Leingang}
\person{178,15}{Fran}
\person{54,154}{Calvin Khor}
\person{49,81}{Peter LeFanu Lumsdaine}
\person{168,169}{Oxinabox}
\person{164,45}{Habi}
\person{14,25}{Jake}
%\person{2,25}{Xylius} % user does not meet criteria
\person{136,58}{jaam}
\person{85,100}{SHY.John} % 100 was taken
\person{36,153}{wipet}
\person{137,170}{Earthliŋ}
\person{27,71}{FvD}
\person{129,134}{Andreï Kostyrka}
\person{82,195}{Kumaresh}
\person{35,78}{Akiiino}
\person{186,177}{Mostly Harmless}
\person{181,182}{biozic}
\person{126}{Shane} % pick another number
\person{72,79}{Alvaro Carril}
\person{173,107}{TobiO}
%\person{106,107}{pfuhlert} % user does not meet criteria
\person{30,34}{Kurt Pfeifle}
\person{87,116}{Jason Zentz}
\person{114,56}{Brydon Gibson}
%\person{17,89}{René G} % both taken
\person{163,145}{Eridan}
\person{66,110}{JCSalomon}
% ==============================
% the announcement
The winner is \winner, with \winningnumber! Congratulations!
\end{document}
I will run this code with all the contestants, post a video of it and announce the winner. The "accepted answer" in this thread will reflect the winning number.
The date
Hopefully, I will get the code running on July 1, 2016 (Friday), and announce the winner. There will be enough time for guessing the numbers!
Good luck! And by the way, welcome to TeX.sx, the friendliest and most awesome community in the whole StackExchange network! They give us hats, right? We give ducks! Quack! :)
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|044|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|058|059|060|
----------------------------------------------------------------------------------
|◖■◗|062|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|075|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|094|095|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|104|◖■◗|106|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|117|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|◖■◗|124|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|130|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|138|139|140|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|143|◖■◗|◖■◗|146|◖■◗|148|149|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|156|◖■◗|158|159|160|
----------------------------------------------------------------------------------
|◖■◗|162|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|174|◖■◗|176|◖■◗|◖■◗|◖■◗|180|
----------------------------------------------------------------------------------
|◖■◗|◖■◗|183|◖■◗|185|◖■◗|◖■◗|188|189|◖■◗|◖■◗|◖■◗|◖■◗|194|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|◖■◗|
----------------------------------------------------------------------------------
◖■◗
Results
The winner of the duck in this edition is R. Schumacher, and the chosen number was 3! I recorded the results in my terminal and the session is available here. Thanks everybody for joining the contest! And thanks for being part of this amazing community! Quack! :)
:)
:)