GreyHairOldGuy
New Member
I am playing with my new Oshonsoft PIC Basic and really enjoying it. I am coming from Microengineering labs PicBasic Pro, and my first (perhaps wrong) impression is PBP may have had a little more extended instruction set, but the emulation feature of OshonSoft makes up for that many many times over. I remember hours spend trying to send out serial data from different parts of my program, trying to figure out where I went wrong.
I am just flashing some LED's and playing with the software, but I am used to having a Random instruction which gives back a pseudo random number when executed. Is there a simple random number generator someone could give me using a few Oshonsoft basic instructions? I tried a multiply, taking parts of the answer and feeding it back to the operands, but once you get a zero operand, (which seems to happen fairly quickly), it's game over.
Someone much smarter than me must have addressed this problem before.....
Tks in advance
Mike
I am just flashing some LED's and playing with the software, but I am used to having a Random instruction which gives back a pseudo random number when executed. Is there a simple random number generator someone could give me using a few Oshonsoft basic instructions? I tried a multiply, taking parts of the answer and feeding it back to the operands, but once you get a zero operand, (which seems to happen fairly quickly), it's game over.
Someone much smarter than me must have addressed this problem before.....
Tks in advance
Mike