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: 9723
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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 73 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: 9723
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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 72 times

Post Reply

Return to “Talking LiveCode”