There may be a better mathematical method, but I suppose I would start with the loc of the screen and add some small random offsets to the loc. Then at random times when the loc is calculated, I would add some major offsets to the center loc. In this way, the center loc is always favored. Of course, I don't know how you're going about the calcs, so this may not work for your situation.
Regards, Scott Rossi Creative Director Tactile Media, UX Design On 3/3/13 5:46 PM, "Roger Guay" <i...@mac.com> wrote: >I suspect this is easy, but I'm not coming up with anything. Can anyone >tell me how to get weighted random numbers in LC? Say I want to position >something on the screen randomly but favor the center of the screen. Any >ideas? > >Thanks, >Roger >_______________________________________________ >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 > _______________________________________________ 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