Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Zlodo
Nov 25, 2006

echinopsis posted:

ok so I've tested this enough times, I think it works


Im the halting problem

Adbot
ADBOT LOVES YOU

KirbyKhan
Mar 20, 2009
Probation
Can't post for 15 hours!
Soiled Meat
So did I win?

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

KirbyKhan posted:

So did I win?

oh yeah, perfect score.

sweeet hit me

deadjb
Aug 11, 2002

my reg date in yyyymmdd format

my homie dhall
Dec 9, 2010

honey, oh please, it's just a machine

echinopsis posted:

ok so I've tested this enough times, I think it works

code:
#sweepstakes program
#find the min/max
#run random numbers until match
#record how many iterations it took

from random import randint

people = ['Brrrmph','post hole digger','DELETE CASCADE','Raluek','MrQueasy','Sagebrush','KirbyKhan','Sweevo','mediaphage','Jenny Agutter','animist','razorscooter','Smythe','Doc Block','SmokaDustbowl','FalseNegative','Beeftweeter']
theirnumbers = [1990,420,69,52833,13610152128,4,5,5318008,42069,256,602214076000000000000000,187,50,8675309,8,25242322210,219]

maxnumber = max(theirnumbers)
minnumber = min(theirnumbers)
iteration = 0
winnumber = 1

while len(theirnumbers)>0:
    iteration = iteration+1
    randomnum = randint(minnumber,maxnumber)
    if randomnum in theirnumbers:
        index = theirnumbers.index(randomnum)
        print (people[index])
        print (iteration)
        print (winnumber)
        winnumber = winnumber+1
        del people[index]
        del theirnumbers[index]
its been going since about 10pm nz time. it obv has a huge range to go thru lol. shes still going

i believe if you run this long enough a bitcoin pops out

Beeftweeter
Jun 28, 2005

OFFICIAL #1 GNOME FAN

my homie dhall posted:

i believe if you run this long enough a bitcoin pops out

every time you furiously crunch numbers, somewhere a tiny altcoin is formed and then depreciates into oblivion.

echinopsis
Apr 13, 2004

by Fluffdaddy
still no winners


hmm
imma leave it all day and see if someone pops up

otehrwise I might have to .. just.. pick one randomly :o

echinopsis
Apr 13, 2004

by Fluffdaddy
I enjoyed writing that program


python is my only friend

Roosevelt
Jul 18, 2009

I'm looking for the man who shot my paw.

echinopsis posted:

if ya dont see your name its because it was ineligble and hence youre disqualified. sorry

bullshit my entry was one this contest is loving rigged and your a frod

echinopsis
Apr 13, 2004

by Fluffdaddy
the rules were very clear in my own mind

anyway brb it’s frod time

Buck Turgidson
Feb 6, 2011

𓀬𓀠𓀟𓀡𓀢𓀣𓀤𓀥𓀞𓀬

Roosevelt posted:

bullshit my entry was one this contest is loving rigged and your a frod

let's kick his rear end

echinopsis
Apr 13, 2004

by Fluffdaddy
all for a cream tshirt

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

echinopsis posted:

ok so I've tested this enough times, I think it works

code:
#sweepstakes program
#find the min/max
#run random numbers until match
#record how many iterations it took

from random import randint

people = ['Brrrmph','post hole digger','DELETE CASCADE','Raluek','MrQueasy','Sagebrush','KirbyKhan','Sweevo','mediaphage','Jenny Agutter','animist','razorscooter','Smythe','Doc Block','SmokaDustbowl','FalseNegative','Beeftweeter']
theirnumbers = [1990,420,69,52833,13610152128,4,5,5318008,42069,256,602214076000000000000000,187,50,8675309,8,25242322210,219]

maxnumber = max(theirnumbers)
minnumber = min(theirnumbers)
iteration = 0
winnumber = 1

while len(theirnumbers)>0:
    iteration = iteration+1
    randomnum = randint(minnumber,maxnumber)
    if randomnum in theirnumbers:
        index = theirnumbers.index(randomnum)
        print (people[index])
        print (iteration)
        print (winnumber)
        winnumber = winnumber+1
        del people[index]
        del theirnumbers[index]
its been going since about 10pm nz time. it obv has a huge range to go thru lol. shes still going

mate i think you forgot my entry

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

Buck Turgidson posted:

let's kick his rear end

im in

echinopsis
Apr 13, 2004

by Fluffdaddy
imagine if i bent the rules then i’d had to let every mother fucker with a smart rear end post go in the draw

i must uphold the cream rules

Raluek
Nov 3, 2006

WUT.

echinopsis posted:

all for a cream tshirt

:rodtronics:

SmokaDustbowl
Feb 12, 2001

by vyelkin
Fun Shoe
obviously I'm going to win, make my shirt say "scrappy doo poo poo on my carpet"

tia

echinopsis
Apr 13, 2004

by Fluffdaddy
ugh still haven’t got a winner yet

so .. i’m gonna do the draw the easy way, and also include everyone who tried to enter if their number was ineligible. but not people who did not even try


if I had lots of money i’d send everyone a tshirt that had cream on it

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

i better be in that list

echinopsis
Apr 13, 2004

by Fluffdaddy
yes you’ll be in the sweepstakes

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

can i still make new entries? 30692

Raluek
Nov 3, 2006

WUT.
drat it fart, you're a loose cannon

Moo Cowabunga
Jun 15, 2009

[Office Worker.




echinopsis posted:

if ya dont see your name its because it was ineligble and hence youre disqualified. sorry

wtf was wrong with the number 6 and number 1?

echinopsis
Apr 13, 2004

by Fluffdaddy
they werent written as numbers but as words representing numbers and also decimal points were meant to disqualify peeps

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

Moo Cowabunga posted:

wtf was wrong with the number 6 and number 1?

trash numbers

distortion park
Apr 25, 2011


echinopsis posted:

they werent written as numbers but as words representing numbers and also decimal points were meant to disqualify peeps

is "two" not a number then?

echinopsis
Apr 13, 2004

by Fluffdaddy
no it’s a word

KirbyKhan
Mar 20, 2009
Probation
Can't post for 15 hours!
Soiled Meat
3

Zlodo
Nov 25, 2006

echinopsis posted:

no it’s a word

it's a number if you use for instance base64

echinopsis
Apr 13, 2004

by Fluffdaddy
i’m
not brave enough for that

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
I had strawberries and cream last night

mediaphage
Mar 22, 2007

Excuse me, pardon me, sheer perfection coming through

Silver Alicorn posted:

I had strawberries and cream last night

delicious

Scud Hansen
Dec 13, 2015

Darkness and Evil
0xDEADBEEF

Scud Hansen
Dec 13, 2015

Darkness and Evil
Voting 5 (for the thread)

Roosevelt
Jul 18, 2009

I'm looking for the man who shot my paw.

echinopsis posted:

ugh still haven’t got a winner yet

so .. i’m gonna do the draw the easy way, and also include everyone who tried to enter if their number was ineligible. but not people who did not even try


if I had lots of money i’d send everyone a tshirt that had cream on it

we're still gonna kick ur rear end

echinopsis
Apr 13, 2004

by Fluffdaddy
i’ve had that coming

git apologist
Jun 4, 2003
Probation
Can't post for 3 hours!

dump

DELETE CASCADE
Oct 25, 2017

i haven't washed my penis since i jerked it to a phtotograph of george w. bush in 2003
seems like you ought to have a winner by now

my homie dhall
Dec 9, 2010

honey, oh please, it's just a machine
I think this guy took our money and dipped!!

Adbot
ADBOT LOVES YOU

Moo Cowabunga
Jun 15, 2009

[Office Worker.




echinopsis posted:

if ya dont see your name its because it was ineligble and hence youre disqualified. sorry

well this is some bullshit right here :smugmrgw:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply