aspire7551 Posted April 15, 2012 Share Posted April 15, 2012 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 asx= -3y= +22z= -15n= -22Then 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 comment Share on other sites More sharing options...
E1M1 Posted April 15, 2012 Share Posted April 15, 2012 (edited) 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 April 15, 2012 by E1M1 edited Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now