Sign in to follow this  
Followers 0
aspire7551

New to programming. need help with this

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by E1M1

edited

Share this post


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
Sign in to follow this  
Followers 0