LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

random

Solved!
Go to solution

Hi to all

 

I want to create Random number size of 6 digit ,

 

but it very important that the number that genetare will not be repeated

 

can I preform this in labview

 

Thanks alot

 

 

0 Kudos
Message 1 of 16
(5,208 Views)

Create an array of integers from 0 to 999999.  Then use the Riffle function to randomize that array.  Then take out the values as you need them one by one using index array.

Message 2 of 16
(5,199 Views)

can yo help me

 

thanks

 

0 Kudos
Message 3 of 16
(5,170 Views)

You should be able to figure it out.  My description is simple enough.  You'll learn more if you take the instructions and figure it out yourself from there, rather than being given the answer.  Is this homework?

0 Kudos
Message 4 of 16
(5,168 Views)

I will build , just can you see if I build it right ?

 

I fear to do something wrong and get same number ? this function related to encryption , and I need to build it right

 

 

Thanks

 

0 Kudos
Message 5 of 16
(5,161 Views)
Solution
Accepted by Elyan_wisam

Of course.  Build it.  Test it.  Then post it in this thread for help if you need it.

0 Kudos
Message 6 of 16
(5,159 Views)

@Elyan_wisam wrote:

I want to create Random number size of 6 digit , but it very important that the number that genetare will not be repeated


This description is not clear at all.

 

If you only create a single six digit random number, a "repeat" is not defined. Do you mean that any of the digits should not occur more than once in the given number?

If you don't want the six digit numbers to repeat, you will run out of numbers at one point, because there is only a finite set.

 

Please formulate the questions more clearly:

 

  • How many six digit numbers do you need to generate?
  • Do you want to exclude duplicates of the six digits numbers or do you want the six digit number to not contain repeated digits?

 


@Elyan_wisam wrote:

can I preform this in labview


LabVIEW is comprehensive programming language. You can do anything with it!

 

So, the answer is yes, of course! Of curse you might need to start with a few tutorials... 😉

0 Kudos
Message 7 of 16
(5,155 Views)

Is "Riffle" a newer LabVIEW function?  Searching for the term gets "(Riemann) Zeta Function (Not in Base Package)."

0 Kudos
Message 8 of 16
(5,070 Views)

@djs_at_eaton wrote:

Is "Riffle" a newer LabVIEW function?  Searching for the term gets "(Riemann) Zeta Function (Not in Base Package)."


Its been around since at least 8.6 on the Signal Processing>>Signal operation sub pallatte.  Of course, that pallatte might not be shown by default.

[Edit: It IS NOT shown with default LabVIEW.ini settings] 

to change visable pallattes open a block diagram View>> Functions pallatte and select customize>>Change Visable pallattes from the pallatte menu
Capture.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 16
(5,054 Views)

It's been around as long as I know of.

 

It is a part of the Full Development System.  Here is the icon and its context help.

 

0 Kudos
Message 10 of 16
(5,053 Views)