Jump to content

sytax error using simple formula in terminal?


counterpoint
 Share

1 post in this topic

Recommended Posts

I tried using Terminal with a simple command to create a shuffled list. I'm told all I need to do is specify the range: for 1-5 you enter 5 and it spits out something like 3,1,2,5,4

 

The formula is:

CreateRandPermutation(5);

 

Problem is: all I get when I plunk this formula into Terminal is this:

 

-bash: syntax error near unexpected token `5'

 

I don't get it - then again, I don't do programming and have never used Terminal.

Link to comment
Share on other sites

 Share

×
×
  • Create New...