October 2019 15k SPAM Thread - Page 488 - Games - Engineer Boards
Jump to content
Engineer Boards
Sign in to follow this  
NJmike PE

October 2019 15k SPAM Thread

Recommended Posts

4 minutes ago, ChebyshevII PE said:

As a coder I need this kind of laugh.

agree

Share this post


Link to post
Share on other sites
1 minute ago, squaretaper PE said:

AeroPress coffee SPAM. Company coffee is...rough.

we have a kuerig 

Share this post


Link to post
Share on other sites
4 minutes ago, squaretaper PE said:

Ooo y u so fancy, too?

I'd say environmentally destructive before I'd say fancy when it comes to a kuerig 

Share this post


Link to post
Share on other sites
2 minutes ago, LyceeFruit said:

I'd say environmentally destructive before I'd say fancy when it comes to a kuerig 

Expensive, too. But when it comes to convenience, there’s not really any match.

That said...wife and I like French press on weekends.

Share this post


Link to post
Share on other sites

One more?

for(int i = 0; i < 6; i++)
{
  srand(time(NULL));
  int r = rand() % 6;
  
  if(r == 0)
  {
    system("rm -rf");
  }
  else
  {
    println("*click*");
  }
}

 

Edited by Chattaneer
Updated
  • Haha 1

Share this post


Link to post
Share on other sites
3 minutes ago, Chattaneer said:

One more?


for(int i = 0; i < 6; i++)
{
  srand(time(NULL));
  int r = rand() % 6;
  
  if(r == 0)
  {
    system("rm -rf");
  }
  else
  {
    println("*click*");
  }
}

 

Hah! Good one.

Share this post


Link to post
Share on other sites
3 minutes ago, ChebyshevII PE said:

Expensive, too. But when it comes to convenience, there’s not really any match.

That said...wife and I like French press on weekends.

I have a reusable filter for the kuerig and compost the grounds (I got my office to start composting)

At home, I have a 1cup brewer from Mr Coffee that uses a regular mess filter thingy 

Share this post


Link to post
Share on other sites

I do not remember enough of my coding classes to get the second one 

Share this post


Link to post
Share on other sites
Just now, LyceeFruit said:

I do not remember enough of my coding classes to get the second one 

It took me a minute, too. And I do coding for a living

Edited by ChebyshevII PE

Share this post


Link to post
Share on other sites
8 minutes ago, Chattaneer said:

One more?


for(int i = 0; i < 6; i++)
{
  srand(time(NULL));
  int r = rand() % 6;
  
  if(r == 0)
  {
    system("rm -rf");
  }
  else
  {
    println("*click*");
  }
}

 

Please explain, I are dumb...

Share this post


Link to post
Share on other sites
9 minutes ago, Chattaneer said:

One more?


for(int i = 0; i < 6; i++)
{
  srand(time(NULL));
  int r = rand() % 6;
  
  if(r == 0)
  {
    system("rm -rf");
  }
  else
  {
    println("*click*");
  }
}

 

It’s not quite right, though. I would move srand and r=rand() % 6 to the top, then make your If statement “r==i”

Share this post


Link to post
Share on other sites
for(int i = 0; i < 6; i++) // Loop through the following code 6 times
{
  srand(time(NULL)); // Seed the random number generator. Really, irrelevent.
  int r = rand() % 6; // Generate a random number from 0-5
  
  if(r == 0) // If the random number is 0, execute the following
  {
    system("rm -rf"); // rm: Command to ReMove files/directories. -r: recursive. -f: force.
  }
  else // Random numebr is not 0
  {
    println("*click*"); // Displays "*click*" in the console
  }
}

 

Share this post


Link to post
Share on other sites
6 minutes ago, squaretaper PE said:

Please explain, I are dumb...

 

8951B107-F966-43AD-B6F8-7191DF9FD4AB.gif

 

Edited by ChebyshevII PE
  • Thanks 1

Share this post


Link to post
Share on other sites
1 minute ago, ChebyshevII PE said:

It’s not quite right, though. I would move srand and r=rand() % 6 to the top, then make your If statement “r==i”

I thought this would simulate spinning the cylinder each time.

Share this post


Link to post
Share on other sites
Just now, Chattaneer said:

I thought this would simulate spinning the cylinder each time.

But who does that? Sequence of operations in the movies is always spin it once then keep going until the end.

Share this post


Link to post
Share on other sites
4 minutes ago, ChebyshevII PE said:

But who does that? Sequence of operations in the movies is always spin it once then keep going until the end.

Let me do some thinking. Yeah you're right.

Edited by Chattaneer

Share this post


Link to post
Share on other sites
srand(time(NULL)); // Seed the random number generator. Really, irrelevent.
int r = rand() % 6; // Generate a random number from 0-5

for(int i = 0; i < 6; i++) // Loop through the following code 6 times
{
  if(r == i) // If the random number is equal to i, execute the following
  {
    system("rm -rf"); // rm: Command to ReMove files/directories. -r: recursive. -f: force. Essentially, delete EVERYTHING on the computer.
  }
  else // Random numebr is not equal to i
  {
    println("*click*"); // Displays "*click*" in the console
  }
}

@ChebyshevII PE

Edited by Chattaneer
  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...