[NetBehaviour] jwm-art.death

James Morris james at jwm-art.net
Tue Sep 22 22:03:49 CEST 2020


I suppose. By responding you've automatically your name is automatically 
added to the script, by hand. My hand. However, due to your attitude to 
winning I've put a marker next to your name.

Cheers

James.





On 22/09/2020 21:01, Bjørn Magnhildøen via NetBehaviour wrote:
> hi james,
> can you put me in as a loser? i'd like to be part of it, i've enjoyed 
> your website over time. maybe at the bottom, outside the count?
>
> best wishes,
> bjørn
>
>
>
>
> On Tue, Sep 22, 2020 at 7:39 PM James Morris <james at jwm-art.net 
> <mailto:james at jwm-art.net>> wrote:
>
>     RF (here my abbreviation for "random function") holds a random
>     numeric value, currently fixed at 2020. If it wasn't fixed I'd use
>     the alternative suggested in the comment, being the value of
>     nanoseconds from system time. It's fixed because there are only
>     three entrants, and two of them agree the third should win.  count
>     holds the number of entrants. The % symbol means modulus.  A
>     modulus calculation is a way of taking a big number and wrapping
>     it around a small number until it's no larger than the small
>     number. RF %  count + 1 therefor provides the index of the winner
>     in the list of names.
>
>
>     On 22/09/2020 08:58, Ruth Catlow via NetBehaviour wrote:
>>     Ha hah! Thanks for the endorsement Alan; )
>>     But I'm pretty sure that's not how it should work.
>>     James I don't understand the logic of the selection. How's it work?
>>
>>     :)
>>     R
>>
>>     On Tue, Sep 22, 2020 at 1:59 AM Alan Sondheim <sondheim at panix.com
>>     <mailto:sondheim at panix.com>> wrote:
>>
>>
>>
>>         Surely Ruth all the time and forever!
>>
>>         Best, Alan
>>
>>         On Mon, 21 Sep 2020, James Morris wrote:
>>
>>         > winner selecting bash script attached. modifications
>>         welcome. winner
>>         > currently fixed.
>>         >
>>         >
>>
>>         web http://www.alansondheim.org/index.html cell 347-383-8552
>>         current text http://www.alansondheim.org/xn.txt
>>         _______________________________________________
>>         NetBehaviour mailing list
>>         NetBehaviour at lists.netbehaviour.org
>>         <mailto:NetBehaviour at lists.netbehaviour.org>
>>         https://lists.netbehaviour.org/mailman/listinfo/netbehaviour
>>
>>
>>
>>     -- 
>>     Co-founder & Artistic director of Furtherfield & DECAL
>>     Decentralised Arts Lab
>>     +44 (0) 77370 02879
>>
>>     *I will only agree to speak at events that are racially and
>>     gender balanced.
>>
>>     **sending thanks
>>     <https://www.ovoenergy.com/ovo-newsroom/press-releases/2019/november/think-before-you-thank-if-every-brit-sent-one-less-thank-you-email-a-day-we-would-save-16433-tonnes-of-carbon-a-year-the-same-as-81152-flights-to-madrid.html> in
>>     advance
>>
>>     *Furtherfield *disrupts and democratises art and technology
>>     through exhibitions, labs & debate, for deep exploration, open
>>     tools & free thinking.
>>     furtherfield.org <http://www.furtherfield.org/>
>>
>>     *DECAL* Decentralised Arts Lab is an arts, blockchain & web 3.0
>>     technologiesresearch hub
>>
>>     for fairer, more dynamic & connected cultural ecologies &
>>     economies now.
>>
>>     decal.is <http://www.decal.is>
>>
>>     Furtherfield is a Not-for-Profit Company Limited by Guarantee
>>
>>     Registered in England and Wales under the Company No.7005205.
>>
>>     Registered business address: Carbon Accountancy, 80-83 Long Lane,
>>     London, EC1A 9ET.
>>
>>
>>
>>
>>     _______________________________________________
>>     NetBehaviour mailing list
>>     NetBehaviour at lists.netbehaviour.org  <mailto:NetBehaviour at lists.netbehaviour.org>
>>     https://lists.netbehaviour.org/mailman/listinfo/netbehaviour
>
>
>     _______________________________________________
>     NetBehaviour mailing list
>     NetBehaviour at lists.netbehaviour.org
>     <mailto:NetBehaviour at lists.netbehaviour.org>
>     https://lists.netbehaviour.org/mailman/listinfo/netbehaviour
>
>
> _______________________________________________
> NetBehaviour mailing list
> NetBehaviour at lists.netbehaviour.org
> https://lists.netbehaviour.org/mailman/listinfo/netbehaviour


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.netbehaviour.org/pipermail/netbehaviour/attachments/20200922/e3d21421/attachment.htm>
-------------- next part --------------
#!/bin/bash
# jwm-art.death
# version 0.0.2
# any modifications welcome
# final script will be run by jwm on 2020-10-05 (5th October 2020)
# see https://lists.netbehaviour.org/pipermail/netbehaviour/2020-August/041570.html
declare -a names=("Alan" "Ruth" "Ann" "#Bjørn")
count=${#names[@]}
RF=2021
winner="#"
while [[ "${winner:0:1}" == "#" ]]
do
  R=$((10#$RF % $count))
  winner="${names[$R]}"
  RF=$(date +%N)
done
echo "And the winner is ${winner}!"


More information about the NetBehaviour mailing list