I was wondering how to randomise the positioning of buttons for a game for each time it is attempted.
Whta you'll have to do here is randomize placements of MC's, not buttons. Place your button(s) inside of a movie clip, and go from there:
SetProperty(/nameofMC,_x) = Random(TOTALX)
SetProperty(/nameofMC,_y) = Random(TOTALY)