On 31/01/2013, at 2:22 PM, Monte Goulding <mo...@sweattechnologies.com> wrote:
> It would depend on what's in your wallet ;-) > > On 31/01/2013, at 2:16 PM, Mark Wieder <mwie...@ahsoftware.net> wrote: > >> ...and the xtalk implementation would be... on mouseUp put random(99) into tChange put tChange&cr&makeChange(tChange) end mouseUp function makeChange pChange repeat for each item tCoin in 50,20,10,5,2,1 put pChange div tCoin into tCoins if tCoins > 0 then put tCoin&"x"&tCoins&cr after tReturn end if put pChange mod tCoin into pChange end repeat return tReturn end makeChange -- Monte Goulding M E R Goulding - software development services mergExt - There's an external for that! _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode