Jump to content

sytax error using simple formula in terminal?


  • Please log in to reply
No replies to this topic

#1
counterpoint

counterpoint

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy