Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'repeats' topicStudent Support Forum > General > Archives > "repeats"

Next Comment >Help | Reply To Topic
Author Comment/Response
dave
01/17/04 12:30pm

how do u get a function to repeat itself to give a no. of different answers.

lets say i have:
h = FoldList[Plus, 0, Table[2Random[Integer, {0, 1}] - 1, {9}]]
to get:
{0, -1, -2, -1, -2, -1, -2, -3, -4, -5}, but i want many such different sets from the same function.

URL: ,

Subject (listing for 'repeats')
Author Date Posted
repeats dave 01/17/04 12:30pm
Re: repeats Dan Margolis 01/23/04 02:22am
Re: repeats Forum Modera... 01/27/04 11:40am
Next Comment >Help | Reply To Topic