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 <[email protected] <mailto:[email protected]>> 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
    [email protected]
    <mailto:[email protected]>
    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
[email protected]
https://lists.netbehaviour.org/mailman/listinfo/netbehaviour


_______________________________________________
NetBehaviour mailing list
[email protected]
https://lists.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to