This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
ceslayer


Newbie


Joined: 15 Jul 2003
Posts: 15

Posted: 15 Apr 2004 11:47:01 pm    Post subject:

say if i have a list called |_ABC, first i made it a 12 number list,

and i generated a sequence of RandInt(1,5,6), so 6 random integers,

now i want to put in the six random integers into list ABC, but starting from the 7th item, so it looks like

(0,0,0,0,0,0,1,4,3,2,4,1)


how?

is there a parameter that i can use in function does that?
Back to top
pcdthebum


Advanced Newbie


Joined: 31 Mar 2004
Posts: 57

Posted: 16 Apr 2004 12:02:16 am    Post subject:

wow, perplexing, i wish i knew how to hel;p you sry
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 16 Apr 2004 12:09:37 am    Post subject:

*gets out calc*
augment({0,0,0,0,0,0},randInt(1,5,6->LABC


Last edited by Guest on 16 Apr 2004 12:09:51 am; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 16 Apr 2004 07:56:50 am    Post subject:

pcdthebum wrote:
wow, perplexing, i wish i knew how to hel;p you sry

If you have nothing to say, then don't reply please.

You could of course also do it manually (though that's just a waste of time and memory but there's no such thing as practicing too much)

RandInt(1,5,6->L1
{0,0,0,0,0,0,0->L2
For(X,1,Dim(L1
L1(X->L2(X+Dim(L2
End
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 16 Apr 2004 03:49:29 pm    Post subject:

or
For(I,7,12)
randInt(1,5 -> L_ABC(I
End
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 16 Apr 2004 06:49:24 pm    Post subject:

Arcane Wizard wrote:
Darth:
READ PEOPLE'S POSTS BEFORE REPLYING TO THEM. K THNX.

post removed. sorry. i dont read well when the bell is about to ring for lunch
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 17 Apr 2004 12:21:48 pm    Post subject:

And it could be optimised to

Code:
augment(seq(0,I,1,6),randInt(1,5,6 -> ABC
or

Code:
augment(randInt(0,0,6),randInt(1,5,6->ABC


And Darth, why do you need to get out a calc for that?
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 20 Apr 2004 02:28:52 am    Post subject:

i dont know why i typed that. i never actually bothered to turn it on, so i dont know...
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 20 Apr 2004 07:34:03 am    Post subject:

Darth Android wrote:
Arcane Wizard wrote:
Darth:
READ PEOPLE'S POSTS BEFORE REPLYING TO THEM. K THNX.

post removed. sorry. i dont read well when the bell is about to ring for lunch

No problem.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement