Automatic betsize question

quick question: if I want to randomize my pre openraise size, for example 2.5bb to 3bb plus 1bb for any caller/limper, which is the good formula: r*(2.5#3)+1bb*nc, or (r*2.5#r*3)+1bb*nc, or something else?