C2 method to create four numbers whose sum is 100.
STEP : 1
declare 4 variables and call them at every tick.
STEP : 2
create a function as shown below
STEP : 3
call the above function with button click and format the colors and text as per you needs
Demo and CAPX download is HERE