I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Hey, I need help. Next year I'm moving into a house with 5 of my good buddies. There are 6 rooms in the house and we're going to draw names on who gets what room. We're going to draw names and if you're name is first you get to choose first and so on. Soo I proposed just doing a random number generator because I want to rig the thing. This is where I need help. I have no idea how to get a random number generator that I can control the first two outcomes (my name then the name of the kid I want to have the room next to me). Does anybody have one that can do this? Or some other alternative that I can use to get the same result?
And All That Could Have Been |
quote |
ಠ_ರೃ
Join Date: May 2004
Location: Minnesota
|
Why don't you just request that you get to have a room next to that person? I don't think you're going to get much help from anyone regarding rigging a drawing.
Roll dice or something. Or have a rock-paper-scissors contest. Or just say "I forfeit my choice in favor of having my room next to X, is that okay everyone?" I'm sure people would be fine with it. |
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Ok missed the point. What Ir eally want is the big, good room. it'd be nice to have it next door to X, but that's not really my concern. My concern is to get the big room. I'm 6'5" 230 and I do not want to get stuck in the little piss ant of a room.
And All That Could Have Been |
quote |
Veteran Member
Join Date: Jun 2004
Location: Portlandia
|
I would think that it's much more likely that you'd be able to make a generator that would control the first outcome, but not the second. You're on your own though.
"What a computer is to me is it's the most remarkable tool that we've ever come up with, and it's the equivalent of a bicycle for our minds." - Steve Jobs |
quote |
Banging the Bottom End
Join Date: Jun 2004
|
If you can code in Java, C or C++ you can rig the number generator. If you don't call the randomize function, then the random number generator will spit out 'random' numbers in the same order every time. In real world terms this is called a pseudo-random number generator.
Once you see what the first few numbers are (you can run the test multiple times to see the numbers repeating every run) then you can rig the program to react to the output from the generator. Or you could just pretend you wrote a random number generator and just have it spit out the numbers you want using a for loop or something. Of course, if your roomates ask to see the source code you'll be found out in 2 seconds flat. |
quote |
Queen of Confrontation
Join Date: May 2004
Location: Ohio
|
Your mother raised you better than to cheat. Now, God will strike you down by making you draw last and getting the small, piss-ant room.
|
quote |
ಠ_ರೃ
Join Date: May 2004
Location: Minnesota
|
If you are the one who holds the drawing (hey guys let's use MY random number generator) and you *just happen* to get the big room, I don't think anyone's going to be suspicious. Oh wait, yeah they will. Like, REALLY suspicious.
Maybe you should work it out so whoever gets the big room has to pay a slightly larger portion of the rent. I mean, if you have less room, you should pay less than someone with more room, right? Or maybe you all pay the same amount, but the person in the big room is responsible for paying all the bills or something. Work out a way to make it fair. |
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Quote:
And All That Could Have Been |
|
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Argento, what's your real name?
I have some time to kill. |
quote |
Banging the Bottom End
Join Date: Jun 2004
|
Quote:
|
|
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Well, it took me about 30 minutes because I had to install the Tiger dev tools and then look up the relevant method names for some classes. I've only touched few Cocoa tutorials and even that was a few years ago. It's ready. All it needs now is Argento's real name as a hard-coded value. The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting. |
quote |
Veteran Member
Join Date: May 2004
|
Quote:
|
|
quote |
ಠ_ರೃ
Join Date: May 2004
Location: Minnesota
|
Maybe if you're the first to move in, you'll get it.
|
quote |
I shot the sherrif.
|
it might just be easier to draw cards and rig the deck. i know that's what i'd do. or play 13 for it. i should have taught you how to cheat properly in that game well enough by now so you'd win.
probably your best bet is to play a series of games that involve drinking. you're bigger, make sure they drink more, and then you can start cheating and they'll be too drunk to notice. Google is your frenemy. Caveat Emptor - Latin for tough titty I tend to interpret things in the way that's most hilarious to me |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
I got the name from your cousin. Here it is. Feedback is always welcome.
It should work on 10.3 and 10.4. edit: new version available father below... |
quote |
I shot the sherrif.
|
LOL
i love the icon. even more, i love the results it generates. |
quote |
Member
|
Drinking games *almost* Always work if your the biggest guy in the house.
**Asumes you are not a wuss when it comes to alchohol. |
quote |
Veteran Member
Join Date: May 2004
Location: New York City
|
So, how do you choose the rest of the rooms? |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
His only real concern was to get the big room. The program selects who gets the big room. Simple as that.
|
quote |
Veteran Member
Join Date: Jun 2004
Location: Portlandia
|
Please tell me you're putting that up on versiontracker.
|
quote |
ಠ_ರೃ
Join Date: May 2004
Location: Minnesota
|
Weird program. It selects the same person many, many times in a row. If I held down the return key, it only very slowly switched between the names I entered (for the record, they were Luca, Jack, Brad, Kick, and Mur... sorry Eric).
EDIT: Hmm, it appears to be time-based. If I press the random selection button every two or three seconds, it usually gives me a different name each time. If I press it rapidly it gives me repeats for a second or maybe two before giving me another one. |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Yeah, I fixed that. The random selector is MUCH better now.
New random code! New interface! New icon! More rooms! Now available in RoomPicker 2.0!!!11!1omgwtf What do I win? The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting. |
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Seems like I NEVER get the big room.......funny though thanks for the laugh Brad..... |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
You did try the new version, right? I ask because you replied so soon after I posted it.
|
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Wow
|
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Just did, but my mouse is now completely broken so I'm doing alot of tabbing, be back in a moment need to find a good one.
|
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Well, you'll be happy to know, then, that the fields and process button are properly set up to allow you to cycle through with the tab key.
|
quote |
Member
Join Date: May 2004
|
HAHAHAHAHHAHAHAHHAHAHAH. That is all.
|
quote |
I puked at work.
Because I'm a pussy. Join Date: May 2004
Location: Head in a trash can.
|
Quote:
|
|
quote |
Veteran Member
Join Date: May 2004
Location: New York City
|
So now rick always gets the last pick. Nice.
Edit: also, I can't seem to change the name of the first person in the list... Last edited by Paul : 2005-04-28 at 02:07. |
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The books on your bookshelf. | xionja | AppleOutsider | 72 | 2006-04-05 04:55 |
Computer Drawing | cyrusmekon | AppleOutsider | 4 | 2005-03-12 21:41 |
best mac based drawing program?? | thegelding | Third-Party Products | 14 | 2004-09-11 20:06 |