Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 2186 2187 [2188] 2189 2190 ... 13326

Author Topic: [MILK] There were 12 eggs here what did you do with them? (Happy thread?!)  (Read 15849738 times)

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32805 on: December 26, 2010, 12:02:07 pm »

Code: [Select]
      int secretNumber = rand() % 100 + 1;
Will make it between 1 and 101 IIRC. Use

Code: [Select]
      unsigned short int secretNumber = (rand() % 99) + 1;
instead.

I made something similar for my first program:

Spoiler (click to show/hide)

In other news, I managed to jury-rig a Parker-type converter to work with a standard C/C pen. I have more ink options now. :D
Logged

Simmura McCrea

  • Bay Watcher
    • View Profile
    • My Steam profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32806 on: December 26, 2010, 12:08:49 pm »

Code: [Select]
      int secretNumber = rand() % 100 + 1;
Will make it between 1 and 101 IIRC.

By the book, using the modulus will give a number between 0 and 99, so adding one moves it into the 1-100 range.
Logged

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32807 on: December 26, 2010, 12:24:02 pm »

Ah. Well, I guess I learnt something today.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32808 on: December 26, 2010, 12:46:50 pm »

yeah, modulus can never give 100, because you can never get 100 as a remainder when you  divide by 100
Logged

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32809 on: December 26, 2010, 12:50:21 pm »

I always wondered why I could never get a 6 on the dice rolls.
Logged

Heron TSG

  • Bay Watcher
  • The Seal Goddess
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32810 on: December 26, 2010, 12:51:18 pm »

I also just tried playing X-COM: Interceptor.
Don't feel bad, it's better than getting shot in the face.

Right?
Logged

Est Sularus Oth Mithas
The Artist Formerly Known as Barbarossa TSG

Dermonster

  • Bay Watcher
  • Break the world, see what falls out.
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32811 on: December 26, 2010, 03:05:03 pm »

Completely ignoring the previous 2 thousand pages, and staying in line with the thread title, some random person just friended me on steam, gifted me L4D2, a game I've really looked forward to getting at some point, and then left.

Best day ever.
Logged
I can do anything I want, as long as I accept the consequences.
"Y'know, my favorite thing about being a hero is that it gives you all kinds of narrative justification to just slay any ol' jerk who gets in the way - Black Mage.
"The bulk of [Derm]'s atrocities seem to stem from him doing things that [Magic] doesn't actually do." - TvTropes
"Dammit Derm!" - You, if I'm doing it right.
Moved to SufficientVelocity / Spacebattles.

sonerohi

  • Bay Watcher
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32812 on: December 26, 2010, 03:06:56 pm »

Playing Haven and Hearth, found a couple of mines for taking in the area.
Logged
I picked up the stone and carved my name into the wind.

Leonon

  • Bay Watcher
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32813 on: December 26, 2010, 03:21:33 pm »

Completely ignoring the previous 2 thousand pages, and staying in line with the thread title, some random person just friended me on steam, gifted me L4D2, a game I've really looked forward to getting at some point, and then left.

Best day ever.
Sounds like the set up for a creepy pasta.
Logged

Gunner-Chan

  • Bay Watcher
  • << IT'S TIME >>
    • View Profile
Logged
Diamonds are combustable, because they are made of Carbon.

Akura

  • Bay Watcher
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32815 on: December 26, 2010, 03:40:26 pm »

Pasta not happeh!



It's blizzarding right now. Really hard. Supposed to be about 2' of snow by tomorrow morning.
Logged
Quote
They asked me how well I understood theoretical physics. I told them I had a theoretical degree in physics. They said welcome aboard.
... Yes, the hugs are for everyone.  No stabbing, though.  Just hugs.

The Merchant Of Menace

  • Bay Watcher
  • Work work.
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32816 on: December 26, 2010, 03:44:02 pm »

Creepy Pasta makes me happy, if it's well done.
Logged
*Hugs*

Gunner-Chan

  • Bay Watcher
  • << IT'S TIME >>
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32818 on: December 26, 2010, 04:14:00 pm »

I feel a little weird that the game I'm most looking forward to coming out soon is a Hentai game, But whatever. I'm pretty happy. :3
Logged
Diamonds are combustable, because they are made of Carbon.

Akigagak

  • Bay Watcher
  • Omnipimping
    • View Profile
Re: [:3] Things that made you HAPPY today thread. Auuu~!
« Reply #32819 on: December 26, 2010, 04:18:42 pm »

We three kings of Orient are,
One in a Vauxhall, two in sports cars.
Logged
But then, life was also easier when I was running around here pretending to be a man, so I guess I should just "man up" and get back to work.
This is mz poetrz, it is mz puyyle.
Pages: 1 ... 2186 2187 [2188] 2189 2190 ... 13326