Hi,
Would like to remove a value from an array. I have tried the following method but it doesn't work quite really well. Thus, I hope someone could improvise my method or suggest a totally new method to me.
This is the array that I currently have.
Base on the above, I have few dates but with same data on those dates. I want to randomly generate a name out from each date, however, considering to get the name from the highest weight first. Then remove the name from the array. Subsequently, after all the name from the highest weight gone, it will move to the next highest weight.
Though I have yet to work on the 'move to the next highest weight' thingy.
I have this current codes with me.
Any suggestion? Thanks.