02-28-2008, 03:27 PM | #1 |
FFR Player
|
Ned halp with Visual Basic
Hah, I have no idea if I can put this here or not, but oh well~
My teacher said I need to generate 6 random numbers in excel, with no repeats, and a timer between each number appearing. Excel has a Visual Basic thingy in it, which is basically what the macro's are. But anyway. I need someone to help me make the code to generate 6 random numbers, between 1-100, with no repeats, and a timer between each number appearing. I need the numbers to appear in cells A1 to A6. Anyone up to the job? ;3 Last edited by SyntheticDarkness; 02-28-2008 at 03:46 PM.. |
02-28-2008, 03:29 PM | #2 |
FFR Player
Join Date: Nov 2006
Posts: 250
|
Re: Ned halp with Visual Basic
don't ask for people to do your homework for you also i think this is the wrong forum.
edit: nvm i thought there was a code forum for some reason |
02-28-2008, 03:34 PM | #3 |
FFR Player
|
Re: Ned halp with Visual Basic
Not homework, coursework. ^^
And I've already tried whoring google for help, no luck. |
02-28-2008, 03:37 PM | #4 |
tool
|
Re: Ned halp with Visual Basic
__________________
|
02-28-2008, 03:42 PM | #5 |
FFR Player
|
Re: Ned halp with Visual Basic
That would generate repeats.
|
02-28-2008, 03:43 PM | #6 |
tool
|
Re: Ned halp with Visual Basic
Then learn to do an if statement. I'm not doing the project for you, this is easy stuff. If you don't understand it, try asking your teacher for help. Like you're supposed to.
__________________
|
02-28-2008, 03:45 PM | #7 |
FFR Player
|
Re: Ned halp with Visual Basic
Lawl, I never asked you to do it, I asked for help. xD
|
02-28-2008, 03:50 PM | #8 | |
FFR Veteran
|
Re: Ned halp with Visual Basic
Quote:
Code:
If intX = intY or intZ or intEtc then intX = int((100 - 1 + 1) * rnd ) + 1 else intX = intX end if |
|
02-28-2008, 03:54 PM | #9 |
FFR Player
|
Re: Ned halp with Visual Basic
Oh right, see, that's helpful. ;o
Thanks. ^^ Last edited by SyntheticDarkness; 02-28-2008 at 04:01 PM.. |
02-28-2008, 05:16 PM | #10 | |
FFR Player
|
Re: Ned halp with Visual Basic
Done it. I made it generate 6 numbers between 1-6, with a 1 second delay between each, no duplicates. Also, ph34r my sloppy coding skillz. ;3
Quote:
Last edited by SyntheticDarkness; 02-28-2008 at 05:19 PM.. |
|
02-28-2008, 05:18 PM | #11 | |
Supreme Dictator For Life
|
Re: Ned halp with Visual Basic
vb's so cute.
__________________
Back to "Back to Earth" Quote:
|
|
02-28-2008, 05:21 PM | #12 |
FFR Player
Join Date: Apr 2005
Posts: 513
|
Re: Ned halp with Visual Basic
If you ever need any more help and can't find any PM me 'cause my dad has like 15+ years in vb (and a buttload of other comp language) experience, but I'm sure FFR would be more convenient.
|
02-28-2008, 05:46 PM | #13 |
FFR Player
|
Re: Ned halp with Visual Basic
Mmk, thanks.
|
02-28-2008, 06:14 PM | #14 | |
Supreme Dictator For Life
|
Re: Ned halp with Visual Basic
Visual Basic isn't even going to be supported anymore starting like... now, so don't bother. Anyone teaching vb is out of their mind.
__________________
Back to "Back to Earth" Quote:
|
|
02-28-2008, 06:41 PM | #15 |
davai
Join Date: Dec 2006
Age: 33
Posts: 2,765
|
Re: Ned halp with Visual Basic
|
02-28-2008, 11:08 PM | #16 |
tool
|
Re: Ned halp with Visual Basic
Welcome to a great introduction language? It's better than Scheme at teaching people the basics of coding and is also a crude way to start with OOP. Not *that* bad of a basic language.
__________________
|
02-28-2008, 11:17 PM | #17 |
FFR Player
|
Re: Ned halp with Visual Basic
ITT Post the most complex VB code you possibly can for a simple task.
__________________
^^^ Tass |
02-29-2008, 09:04 AM | #18 | |
Supreme Dictator For Life
|
Re: Ned halp with Visual Basic
Oh I agree entirely. I can't think of a better way to get introduced to object-oriented programming. But it's practical uses are pretty restrictive. It's just so damn inefficient. But it was cute when I took it as my first programming class back in 10th grade.
__________________
Back to "Back to Earth" Quote:
|
|
02-29-2008, 09:34 AM | #19 |
tool
|
Re: Ned halp with Visual Basic
Fair enough. Between that and programming on my Ti-83+ I think I put in a few solid months of completely pointless work. Still learned a lot, though, while managing to make a program on my calc that took my Honors Chem final for me. Good times.
__________________
|
02-29-2008, 09:39 AM | #20 |
FFR Veteran
|
Re: Ned halp with Visual Basic
Crap to late to help sorry good job getting it done
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|