キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

random

解決済み
解決策を見る

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 件の賞賛
メッセージ1/16
6,571件の閲覧回数

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.

メッセージ2/16
6,562件の閲覧回数

can yo help me

 

thanks

 

0 件の賞賛
メッセージ3/16
6,533件の閲覧回数

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 件の賞賛
メッセージ4/16
6,531件の閲覧回数

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 件の賞賛
メッセージ5/16
6,524件の閲覧回数
解決策
受理者 Elyan_wisam

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

0 件の賞賛
メッセージ6/16
6,522件の閲覧回数

@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 件の賞賛
メッセージ7/16
6,518件の閲覧回数

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

0 件の賞賛
メッセージ8/16
6,433件の閲覧回数

@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 件の賞賛
メッセージ9/16
6,417件の閲覧回数

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 件の賞賛
メッセージ10/16
6,416件の閲覧回数