|
|||||||
| NBR - Not Biking Related Anything you feel like chatting about. PROFANITY, ABUSE, OR PORN WILL NOT BE TOLERATED! |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
#1 |
|
g1mpa'tron
|
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
__________________
|
|
|
|
|
|
#2 |
|
Donna FJ
Join Date: Nov 2002
Location: NVLOC
Posts: 638
Rep Power: 6394 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
rand()
|
|
|
|
|
|
#3 |
|
g1mpa'tron
|
heh.....need help on the actual source code there buddy.....
__________________
|
|
|
|
|
|
#4 |
|
gimp
Join Date: Nov 2002
Location: poco
Posts: 722
Rep Power: 0 ![]() |
|
|
|
|
|
|
#5 |
|
temporary
Join Date: Nov 2002
Location: vancouver
Posts: 1,477
Rep Power: 281 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
yeah all i know is a little quick basic. Stupid old q basic. all cause my teacher at school wont get up to date.
__________________
|
|
|
|
|
|
#6 |
|
g1mpa'tron
|
sweet ass your teacher teaches you programming?
__________________
|
|
|
|
|
|
#7 |
|
temporary
Join Date: Nov 2002
Location: vancouver
Posts: 1,477
Rep Power: 281 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
its called info tech...its learning to program basically. I usually just play games all class
__________________
|
|
|
|
|
|
#8 |
|
Finance ninja
Join Date: Sep 2001
Location: burnaby
Posts: 9,114
Rep Power: 666 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
|
|
|
|
|
#9 |
|
g1mpa'tron
|
are you talking to me? cause i already know that function and some random num generators i just need help with that specific one!
__________________
|
|
|
|
|
|
#10 |
|
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; } |
|
|
|
#11 |
|
g1mpa'tron
|
ya i know that one....thanx....I need one that generates 3 numbers....each one from 1 - 3
__________________
|
|
|
|
|
|
#12 | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
|
|
#13 |
|
g1mpa'tron
|
oh ya! heh Im dumb....thanx man!
__________________
|
|
|
|
![]() |
| Sponsored Links |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |