03-09-2016 01:36 PM
@James.M wrote:The way I would do this that's pretty simple is this:
- Build array of 1-69
- Use a For loop to loop N times for how many numbers you want to pull out
- Pass your array to shift registers on the For loop
- Within the For loop, use random number (scaled to be between 0 and array size minus 1) to delete an element from the array and pass the smaller array back to the shift register
- Output the deleted elements from each loop of the array and you have your lotterty numbers.
It is easy than that
Now, explain that to your instructor and earn the A
03-09-2016 01:39 PM
Riffled. That's something new!
I'm not sure if you meant to make a mistake in the code or not.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-09-2016 02:13 PM - edited 03-09-2016 02:15 PM
Apparently Bill is doing a great job of helping students do thier own homework!
For those of you that did the "College" thing--- when should I avoid doing homework? Yup- March == Spring break and handing in assignments studii should have been working on before they partied.
Thanks RF
@ James- Riffled is not new---- It is no longer biased! Search for "riffle is biased"
03-14-2016 09:34 AM
How did you get that thing in the middle?
03-14-2016 09:44 AM
So here is my second attempt to post my VI. So Im trying to figure out what to do next. I need to create a lottery generator simulator. Numbers must be betwen 1-69 and they cannot repeat.
I took a screen shot of the VI just in case it's blank again.
03-14-2016 09:46 AM - edited 03-14-2016 09:47 AM
03-14-2016 09:48 AM
Can you tell me what a riffle does so i know how to explain it to my teacher.
03-14-2016 09:54 AM
Also how do you get that last part?
03-14-2016 09:55 AM
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
03-14-2016 09:57 AM
@Solrac_0 wrote:Can you tell me what a riffle does so i know how to explain it to my teacher.
Riffle takes an array of numbers and randomly rearranges them.