A random walk

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

A random walk

Post by dunbarx »

This was started to give ideas to someone about moving controls around the screen.

A random walk states that given a series of random moves, the object of interest will stay fairly close to its starting point.

Makes sense.

Anyway this jittery thing works.

Craig
RandomWalk.livecode.zip
(16.98 KiB) Downloaded 196 times
Last edited by dunbarx on Fri Jan 07, 2022 12:43 am, edited 1 time in total.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: A random walk

Post by dunbarx »

After 1000 walks.

Craig
Screen Shot 2022-01-06 at 6.44.14 PM.zip
(158.56 KiB) Downloaded 191 times
Post Reply