Let's Make Robots!

random

Picaxe PWM code help

Hello LMR,

I have a throughly noob question or two.

Creates and indicates a random number
The Chaot is my contestant for the LMRv4 Donor Appreciation Robot Challenge.  The machine creates a random number using physical chaos and combines the random … Read more

Question about Picaxe Random function

 

I understand that the picaxe does not have a clock, and that the "random" function will produce numbers in a sequence between 0 and 65535 (not really random), but I have a question.

From memory, when I used commodore basic all those years ago, you could write something like rnd(9), which would produce a random number between 0 and 9 (I think that's right), so is there any way I can get picbasic to do the same. I want to switch, on and off, 4 led's in a random sequence.

Thanks in advance :)

Drives around randomly, dices if he hits an obstacle, emits strange sounds
Using a
Forget to spin the bottle or throw common dice at your next party --- Mr. Random is in the house. Driven by two hacked (continuous rotation) servos, Mr. Random … Read more

Just some random thoughts

It's 5am and I'm still working on a project, not a robot or even bot related project *sigh*.  We all do what we have to do in order to clothe, feed and shelter ourselves and those we love if we they live with us.  This got me thinking of my bot Leo, and a few objectives I have for him such a new body for himas being able to 'feed' himself, and making a bot 'home' for him.