Message from @Verm

Discord ID: 291624053305769995


2017-03-15 17:20:53 UTC  

9423524859
Faggot.

2017-03-15 17:21:47 UTC  

> makes a bot to generate imageboard style post numbers
> numbers are completely randomized and are not actually post numbers

2017-03-15 17:21:52 UTC  

so you start out with say 1
then roll a 1
1 == 1 is true, so repeating is 2
and then 11 is the string
then you roll a 2
2 isn't the same as 1, so repeating is locked at 2
and then you get 211

2017-03-15 17:22:32 UTC  

Why not just generate a random number between 1000000 and 9999999?

2017-03-15 17:22:38 UTC  

the individual numbers are just (int)(Math.Random()*10)

2017-03-15 17:22:55 UTC  

and because then to check how many repeating I'd need to do a looot more modulus logic

2017-03-15 17:23:12 UTC  

same amount of work this just came into my head first

2017-03-15 17:23:24 UTC  

same accuracy too

2017-03-15 17:24:30 UTC  
2017-03-15 17:24:49 UTC  

int rep(int digits)
{
if(digits%10==(digits/10)%10)
{
return reps(digits/10)+1;
}
return 0;
}

2017-03-15 17:25:53 UTC  

that would only check 2 digits out of the list and you'd need to cut off the ones before it

2017-03-15 17:26:06 UTC  

its recursive.

2017-03-15 17:26:16 UTC  

oh woops missread

2017-03-15 17:26:46 UTC  

if darty(faggot)
{
stop(suck%100==(dick/69)%1488
{
return why(faggot/1488)+777
} post this;
} get

2017-03-15 17:26:54 UTC  

i never remember to use recursive functions outside of linked lists and trees

2017-03-15 17:27:40 UTC  

either way logic works for both, no reason to change it now

2017-03-15 17:28:04 UTC  

and the random number generation is at worst a little low on the odds

2017-03-15 17:29:00 UTC  

http://i.imgur.com/IYdd3vi.png I remember a DM tried to force this
made me sad

2017-03-15 17:29:43 UTC  

man

2017-03-15 17:29:52 UTC  

That's pretty great

2017-03-15 17:30:04 UTC  

Let me tell you one of mine that happened recently

2017-03-15 17:31:47 UTC  

> make an AI/robotics character in Eclipse Phase
> start hacking into a ship core on a mission
> realise the opposing AI has linked up all the access panels to the generator
> 400 volt straight to the access ports
> hack doorway, get to the control terminal and clone over AI
> leave with Mike Pence ship AI

2017-03-15 17:32:12 UTC  

It honestly sounded better in my mind.

2017-03-15 17:32:33 UTC  

hue

2017-03-15 17:32:49 UTC  

it's one of those "had to be there" things I guess

2017-03-15 17:34:19 UTC  

Yea, eclipse phase is one of those games that you really need to know to understand the humor.

2017-03-15 17:34:39 UTC  

current campaign had a crazy begining, was playing a random gen'd rave girl assassin in dark heresy, threw in some flavor that the scum in the party was her best friend and dealer for grinweed
well basically we fought an imaginary tiger and deer while getting high off his stash in the back of a military transport that was moving us and one other party member to meet the rest of the party, some Sisters of Battles
but for the life of me I can't tell the story on the fly

2017-03-15 17:35:01 UTC  

wtf triggered pence

2017-03-15 17:35:03 UTC  

electric type

2017-03-15 17:35:29 UTC  

OH

2017-03-15 17:35:31 UTC  

LEL

2017-03-15 17:35:33 UTC  

transport

2017-03-15 17:35:41 UTC  

TRANSport

2017-03-15 17:35:49 UTC  

I'ma remove trans from it

2017-03-15 17:36:46 UTC  

transport

2017-03-15 17:36:51 UTC  

???

2017-03-15 17:37:41 UTC  

Throw transport down the well. https://www.youtube.com/watch?v=Vb3IMTJjzfo