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: 10339
Joined: Wed May 06, 2009 2:28 pm

A random walk

Post by dunbarx » Wed Jan 05, 2022 12:03 am

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 126 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: 10339
Joined: Wed May 06, 2009 2:28 pm

Re: A random walk

Post by dunbarx » Thu Jan 06, 2022 10:19 pm

After 1000 walks.

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

Post Reply