Quote:
Originally Posted by EQAditu
Well, I could think of a fair one if we had access to a modulus operator. I don't recall us being able to do something like 3%2=1 though.
|
mod is but one way to go about it. You don't need much randomness either, the OP just wants a non-linear index creation for a datasource. So as long as your formula provides a value which lies is within the number of entries in the datasource that's all you need. The new math functions int(), floor()/ceil() should help.