Microbit V2 random movement

Hello,

I am wanting to use a microbit V2 to move randomly? Is this possible?

Hi
Great to meet you …

“Move randomly”?

What do you want to move ?
The MicroBit itself ?
One of the led on the display ?

More detailed information on what you want to achieve will be helpful

I’m sure knowing the community here , once we know we will be only too pleased to help

Sorry that was a little vague - I am wanting to make a toy which moves randomly - I have a move motor so was looking at coding the microbit V2 to move randomly. When it gets near an a wall etc it changes direction?

thanks for the update - the more details about the project the better i usually find!

How are you detecting when the device is near a wall?

do you have any example code or video you are willing to share?