Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Random number between a range

DSP related issues, mathematics, processing and techniques

Random number between a range

Postby Maryirita » Wed Jul 15, 2015 1:13 am

Hello guys,
I want to do a program that show a random number between a determinated range and do it the times that i want , for example, i need 5 numbers randomnly between 1 to 10 one after another, i tried to do it but just work one time or may i don't know how show many numbers . Thank youuuu
Attachments
rand.fsm
(120.27 KiB) Downloaded 1234 times
Maryirita
 
Posts: 16
Joined: Sun Dec 07, 2014 7:08 pm
Location: Colombia

Re: Random number between a range

Postby Tronic » Wed Jul 15, 2015 1:44 am

Hi Maryirita
like this?
Attachments
rnd_nbr.fsm
(131.33 KiB) Downloaded 1275 times
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Random number between a range

Postby Maryirita » Wed Jul 15, 2015 2:01 am

Hi Tronic,
Yes , like that, but you could explain me what mean "watch in_avr" please?
Maryirita
 
Posts: 16
Joined: Sun Dec 07, 2014 7:08 pm
Location: Colombia

Re: Random number between a range

Postby Tronic » Wed Jul 15, 2015 2:07 am

The watch method is used to "watch" the value in the Ruby Editor view portion for debug
this is explained in FlowStone User Guide pag.155
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Random number between a range

Postby Maryirita » Wed Jul 15, 2015 2:16 am

Thank you very much , Tronic !

Hug :)
Maryirita
 
Posts: 16
Joined: Sun Dec 07, 2014 7:08 pm
Location: Colombia

Re: Random number between a range

Postby BobF » Thu Jul 16, 2015 12:47 am

Hello Tronic,

Thanks a lot, I have been looking for just such a rnd generator.
Keep up the great work!

Later then, BobF.....
BobF
 
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 8 guests