Announcement

Collapse
No announcement yet.

I can't think straight

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I can't think straight

    I can't seem to solve this problem,

    There are two items (both integers)

    Item A
    Item B


    If the user inputs 300 it needs to subtract 300*(rand(1,3)) From Item A or subtract 300*(rand(10,20)) from Item B

    It looks simple, but it gets complicated where Item B has less than the value, and Item A has less than the value, so it has to be split somehow to account for all possible quantity combinations of Item A and Item B.

    Thanks in advance,

    Dimava
    NXSupport Admin

Related Topics

Collapse

Working...
X