I'm not sure that function is correct, but if we assume that it does, you can use this code as the button's MouseUp action to use it and apply the value it returns for your fields:
this.getField("STRRoll").value = randomAbilityScore();
this.getField("DEXRoll").value = randomAbilityScore();
this.getField("LOGRoll").value = randomAbilityScore();
this.getField("WILRoll").value = randomAbilityScore();
To show/hide a button when a check-box is ticked, place this code as the check-box's MouseUp event (replace "ShowHideButton" and "MyButton" with the actual names of the fields):
this.getField("MyButton").display = this.getField("ShowHideButton").value=="Off" ? display.hidden : display.visible;
Thank you so much...I really REALLY appreciate the help! LOL...it doesn't look that difficult after seeing the code you supplied....but knowing where to start is key. I'll give this a go and let you know how it works out .
It worked perfectly...thank you so much for all of your help !