09-04-2025, 08:58 AM
I am little confused how to go about this one.
i am want to select a block from a set of four blocks. but they each have a different weightas in how many times they get selected bassed on percentage.
i am want to select a block from a set of four blocks. but they each have a different weightas in how many times they get selected bassed on percentage.
Code: (Select All)
'I want to pick a block out of four blocks but wanting them to have a different weight meaning
'
'block 1 will be selected 23% of the time out of 4 blocks 60/256
'block 2 will be selected 19% of the time out of 4 blocks 50/256
'block 3 will be selected 3% of the time out of 4 blocks 9/256
'block 4 will be selected 0% of the time out of 4 blocks 0/256 I understand if 0 I ignore the selection
'
'being that the percentage of each block returned can be changed..
'
' sub storechar (xlocation,ylocation,block1%,block2%,block3%,block4%)
'
'
'
'
'
'variable (xlocation,ylocation)=block based on percentage
'
' end sub
