Go Back   North Shore Mountain Biking Forums > NBR - Not Biking Related

NBR - Not Biking Related Anything you feel like chatting about. PROFANITY, ABUSE, OR PORN WILL NOT BE TOLERATED!

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-22-2002, 06:45 AM   #1
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
Programming

If any of you programm in c++ can you help me out....Im trying to make a random number generator to generate 3 numbers, the highest being 3 lowest being 1......the numbers can show up any way... 1 2 3....2 2 3....1 1 3....3 3 3...etc hopefully you can help me out thanks
__________________
g1mpy is offline   Reply With Quote

Old 12-22-2002, 06:46 AM   #2
FamilyJewels
Donna FJ
 
FamilyJewels's Avatar
 
Join Date: Nov 2002
Location: NVLOC
Posts: 638
Rep Power: 6394
FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.FamilyJewels has achieved FLOW.
rand()
FamilyJewels is offline   Reply With Quote
Old 12-22-2002, 06:48 AM   #3
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
heh.....need help on the actual source code there buddy.....
__________________
g1mpy is offline   Reply With Quote
Old 12-22-2002, 07:06 AM   #4
125
gimp
 
125's Avatar
 
Join Date: Nov 2002
Location: poco
Posts: 722
Rep Power: 0
125 is a n00b; standing by
125 is offline   Reply With Quote
Old 12-22-2002, 07:07 AM   #5
243_ht
temporary
 
243_ht's Avatar
 
Join Date: Nov 2002
Location: vancouver
Posts: 1,477
Rep Power: 281
243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.
yeah all i know is a little quick basic. Stupid old q basic. all cause my teacher at school wont get up to date.
__________________
243_ht is offline   Reply With Quote
Old 12-22-2002, 07:09 AM   #6
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
sweet ass your teacher teaches you programming?
__________________
g1mpy is offline   Reply With Quote
Old 12-22-2002, 07:43 AM   #7
243_ht
temporary
 
243_ht's Avatar
 
Join Date: Nov 2002
Location: vancouver
Posts: 1,477
Rep Power: 281
243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.243_ht has achieved FLOW.
its called info tech...its learning to program basically. I usually just play games all class
__________________
243_ht is offline   Reply With Quote
Old 12-22-2002, 12:33 PM   #8
Norman
Finance ninja
 
Norman's Avatar
 
Join Date: Sep 2001
Location: burnaby
Posts: 9,114
Rep Power: 666
Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.Norman has achieved FLOW.
He gave you the function - you should be able to use your brain and look up how to use the function.
__________________
My photos | Green Avocado


Life's tough, it's even tougher if you're stupid.

Guns kill people just like pens cause spelling mistakes, cars create drunk drivers and spoons create fat people.
Norman is offline   Reply With Quote
Old 12-22-2002, 04:57 PM   #9
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
are you talking to me? cause i already know that function and some random num generators i just need help with that specific one!
__________________
g1mpy is offline   Reply With Quote
Old 12-22-2002, 05:11 PM   #10
clay@nsmb.com
Guest
 
Posts: n/a
This creates a random number between 1 & 3.

#include <iostream.h>
#include <stdlib.h>


void main(void)
{

int RandomNumberForNewb;

RandomNumberForNewb = 1 + rand() % 3;

cout << RandomNumberForNewb << endl;

}
  Reply With Quote
Old 12-22-2002, 05:29 PM   #11
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
ya i know that one....thanx....I need one that generates 3 numbers....each one from 1 - 3
__________________
g1mpy is offline   Reply With Quote
Old 12-22-2002, 05:33 PM   #12
clay@nsmb.com
Guest
 
Posts: n/a
Quote:
Originally posted by g1mpy
ya i know that one....thanx....I need one that generates 3 numbers....each one from 1 - 3
well use a for loop then.
  Reply With Quote
Old 12-22-2002, 05:39 PM   #13
g1mpy
g1mpa'tron
 
g1mpy's Avatar
 
Join Date: Dec 2002
Location: Slave Lake, Alberta
Posts: 2,912
Rep Power: 11
g1mpy is a n00b; standing by
Send a message via MSN to g1mpy
oh ya! heh Im dumb....thanx man!
__________________
g1mpy is offline   Reply With Quote
Reply
Sponsored Links

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lasso Programming Sharon NBR - Not Biking Related 3 12-08-2004 10:21 PM
Java programming help ronald55555 NBR - Not Biking Related 6 10-15-2004 03:44 AM
Of satellite TV, cable TV and/or "free" satellite programming Loopie NBR - Not Biking Related 18 08-07-2004 10:12 AM
CNC Programming/ Machining Monster Mike NBR - Not Biking Related 6 03-10-2003 02:01 AM


All times are GMT +1. The time now is 05:28 AM.