Jump to content

New to programming. need help with this

Recommended Posts

Posted Image

The script has to input a random combination of sets and then add up the totals. Then calculate the difference between each value between set 18 and 17 and display it as

x= -3

y= +22

z= -15

n= -22

Then when the Z key is pushed it will randomize sets 1 to 16, add it all up, and show the difference again between set 17 (the totals) and set 18.

Link to post
Share on other sites

I didn't understand quite well what you trying to do but for random. see random documentation from help file (hit f1 in scite). You could use arrays for storing sets.

Does it have to work like excel? in that case you need 2 dimensional array which would look like $array[$y][$x] where $y is row and $x is is column and then you could use for loop to calculate sum.

Hopefully it gives you some ideas.

Edited by E1M1


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...