1
00:00:05,000 --> 00:00:07,000
Hello, friends today.

2
00:00:08,000 --> 00:00:09,000
I will tell you.

3
00:00:10,000 --> 00:00:13,000
One game related to two dice.

4
00:00:13,000 --> 00:00:20,000
In this case, the user just put a number that is a combination of.

5
00:00:21,000 --> 00:00:24,000
Number appeared on two dioceses.

6
00:00:25,000 --> 00:00:27,000
Let's say, on the first dice.

7
00:00:29,000 --> 00:00:30,000
The user gets.

8
00:00:31,000 --> 00:00:31,000
One.

9
00:00:31,000 --> 00:00:34,000
And on the second dice the user gets three.

10
00:00:35,000 --> 00:00:37,000
The combination is four.

11
00:00:37,000 --> 00:00:39,000
And if the user.

12
00:00:40,000 --> 00:00:44,000
Initially select for in that case, both.

13
00:00:44,000 --> 00:00:53,000
The combination is both the combination are equal in this case and it will generate a reward for the

14
00:00:53,000 --> 00:00:54,000
user.

15
00:00:54,000 --> 00:00:59,000
So let's create a lab view for that purpose.

16
00:00:59,000 --> 00:01:00,000
So just put.

17
00:01:01,000 --> 00:01:03,000
Create a new over here.

18
00:01:04,000 --> 00:01:10,000
In this case, I just select one random number.

19
00:01:12,000 --> 00:01:22,000
As in my previous video or in this case, the upper bound for the dice should be six because the maximum

20
00:01:22,000 --> 00:01:29,000
number mounted on the dice is six and the lower number mounted on the dice is one.

21
00:01:29,000 --> 00:01:37,000
In this case, I just need two random numbers because I have two dice in this case.

22
00:01:37,000 --> 00:01:40,000
So let's create indicator for this.

23
00:01:41,000 --> 00:01:42,000
Create.

24
00:01:42,000 --> 00:01:44,000
This is my dice one.

25
00:01:46,000 --> 00:01:49,000
Now create four second dies.

26
00:01:50,000 --> 00:01:53,000
Create indicator for dies to.

27
00:01:56,000 --> 00:02:01,000
Okay, So right now I have two dices.

28
00:02:02,000 --> 00:02:05,000
So this is the dice one.

29
00:02:05,000 --> 00:02:06,000
This is Dice two.

30
00:02:07,000 --> 00:02:14,000
Now, I want to just apply addition because I need combination of these two.

31
00:02:15,000 --> 00:02:18,000
Just connect this over here.

32
00:02:18,000 --> 00:02:21,000
I just got the combination.

33
00:02:22,000 --> 00:02:22,000
Yeah.

34
00:02:26,000 --> 00:02:27,000
Of two dioceses.

35
00:02:27,000 --> 00:02:40,000
Now I just select a number that is initially selected by the user, so just make it integer type.

36
00:02:41,000 --> 00:02:43,000
Just go to representation.

37
00:02:44,000 --> 00:02:47,000
So go to comparison.

38
00:02:47,000 --> 00:02:55,000
When both are equal means combination and the number selected by user.

39
00:02:55,000 --> 00:02:56,000
Both are equal.

40
00:02:56,000 --> 00:03:01,000
So over here I just make it to 64 by 64.

41
00:03:01,000 --> 00:03:03,000
So that quotient dot removed.

42
00:03:05,000 --> 00:03:08,000
Just delete this again.

43
00:03:08,000 --> 00:03:10,000
Connect this person.

44
00:03:10,000 --> 00:03:20,000
Dot is again over here it is unsigned number, not integer, just make it unsigned 64 person dot removed

45
00:03:20,000 --> 00:03:23,000
so it will generate a true signal.

46
00:03:23,000 --> 00:03:26,000
Just want to stop the loop.

47
00:03:27,000 --> 00:03:30,000
Just put a while loop over here.

48
00:03:30,000 --> 00:03:37,000
Just connect it to my while loop and this is my iteration loop iteration and.

49
00:03:38,000 --> 00:03:40,000
Just connect it over here.

50
00:03:40,000 --> 00:03:41,000
Over the edge.

51
00:03:42,000 --> 00:03:45,000
Make a increment because iteration starts from zero.

52
00:03:46,000 --> 00:03:53,000
Connect it so it will give me after how many loop iterations or how many.

53
00:03:54,000 --> 00:03:55,000
Times.

54
00:03:55,000 --> 00:03:58,000
I just got that combination after how many times?

55
00:03:58,000 --> 00:04:02,000
By playing the two dice or by running the two dice.

56
00:04:02,000 --> 00:04:04,000
I just got the combination.

57
00:04:04,000 --> 00:04:07,000
So over here, this is my match.

58
00:04:07,000 --> 00:04:10,000
So just go to the.

59
00:04:11,000 --> 00:04:16,000
Front panel just make it more decorative.

60
00:04:16,000 --> 00:04:19,000
So for that purpose, I just drag.

61
00:04:20,000 --> 00:04:24,000
I initially save a video, not a video.

62
00:04:24,000 --> 00:04:26,000
I just import a picture.

63
00:04:27,000 --> 00:04:30,000
As you see over here, this is my dice.

64
00:04:31,000 --> 00:04:34,000
So just paste it.

65
00:04:34,000 --> 00:04:36,000
So this is my one dice.

66
00:04:36,000 --> 00:04:40,000
Let's say just paste another dice.

67
00:04:42,000 --> 00:04:43,000
Over here.

68
00:04:45,000 --> 00:04:46,000
This is my second dice.

69
00:04:52,000 --> 00:04:53,000
Let's check the size.

70
00:04:53,000 --> 00:04:55,000
The size is same right now.

71
00:04:55,000 --> 00:04:57,000
So this is my one dice.

72
00:04:57,000 --> 00:04:59,000
This is my second dice.

73
00:04:59,000 --> 00:05:01,000
Just replace this dice.

74
00:05:07,000 --> 00:05:08,000
Right now.

75
00:05:08,000 --> 00:05:08,000
Over here.

76
00:05:09,000 --> 00:05:09,000
The number.

77
00:05:10,000 --> 00:05:11,000
I got.

78
00:05:11,000 --> 00:05:12,000
Let's say it is.

79
00:05:15,000 --> 00:05:15,000
This one.

80
00:05:16,000 --> 00:05:18,000
So just remove its label.

81
00:05:21,000 --> 00:05:27,000
So over here, I got the number from first dice over here.

82
00:05:27,000 --> 00:05:29,000
This is my second dice.

83
00:05:29,000 --> 00:05:32,000
Just again, increase the size.

84
00:05:36,000 --> 00:05:39,000
Just remove its label also.

85
00:05:42,000 --> 00:05:47,000
So over here I got the myrrh from second dies.

86
00:05:48,000 --> 00:05:49,000
And over here.

87
00:05:50,000 --> 00:05:52,000
This is the number by user.

88
00:05:54,000 --> 00:05:56,000
Or combination by user.

89
00:06:02,000 --> 00:06:08,000
Okay, so let's say just boiled it also and increase the size.

90
00:06:11,000 --> 00:06:17,000
So over here and just replace this function with a slider.

91
00:06:20,000 --> 00:06:23,000
Change with the slider.

92
00:06:23,000 --> 00:06:26,000
Horizontal style slider I'm using in this case.

93
00:06:27,000 --> 00:06:29,000
And as we know, the combination.

94
00:06:30,000 --> 00:06:31,000
Of these two.

95
00:06:32,000 --> 00:06:42,000
The minimum number appeared on these two dice is two and the maximum number appeared on these two dice

96
00:06:42,000 --> 00:06:48,000
is six plus six, that is 12, and minimum number is one plus one that is 12.

97
00:06:48,000 --> 00:06:52,000
So I just make it like this increase the size of this.

98
00:06:53,000 --> 00:07:05,000
So over here, I just put the number and I just use a digital display over here to check what is inside

99
00:07:05,000 --> 00:07:06,000
this.

100
00:07:07,000 --> 00:07:10,000
So create size over here.

101
00:07:11,000 --> 00:07:11,000
Over here.

102
00:07:11,000 --> 00:07:14,000
We got the combination of these two.

103
00:07:15,000 --> 00:07:17,000
Just replace it.

104
00:07:18,000 --> 00:07:18,000
Whether.

105
00:07:21,000 --> 00:07:21,000
More.

106
00:07:25,000 --> 00:07:27,000
Visual display indicator.

107
00:07:28,000 --> 00:07:34,000
So here, this is my the maximum number again, it is 12.

108
00:07:34,000 --> 00:07:37,000
And the minimum number it should be two.

109
00:07:38,000 --> 00:07:47,000
So again, just create a digital display over here to check what is.

110
00:07:48,000 --> 00:07:49,000
Inside this.

111
00:07:50,000 --> 00:07:52,000
And this is my match.

112
00:07:53,000 --> 00:07:54,000
After how?

113
00:07:55,000 --> 00:07:59,000
Many times by playing these two dice.

114
00:08:00,000 --> 00:08:04,000
I just got the match that is selected by the user.

115
00:08:04,000 --> 00:08:07,000
So let's create.

116
00:08:09,000 --> 00:08:10,000
Increase the size first.

117
00:08:12,000 --> 00:08:16,000
And just again change its size.

118
00:08:17,000 --> 00:08:19,000
Also change its size.

119
00:08:20,000 --> 00:08:28,000
So right now, when I hit on run button, let's first number the first combination, it should be eight.

120
00:08:29,000 --> 00:08:30,000
This eight.

121
00:08:31,000 --> 00:08:32,000
Have.

122
00:08:33,000 --> 00:08:35,000
Many combinations like first case.

123
00:08:36,000 --> 00:08:39,000
When two and six is there, it will give me.

124
00:08:40,000 --> 00:08:48,000
Eight and this match will comes after 27 times when I just run the two dices.

125
00:08:49,000 --> 00:08:50,000
Another combination again.

126
00:08:52,000 --> 00:08:55,000
Now six two on the first dice.

127
00:08:55,000 --> 00:08:56,000
I just got six.

128
00:08:56,000 --> 00:08:57,000
On the second dice.

129
00:08:57,000 --> 00:09:00,000
I got two, Three plus five again.

130
00:09:00,000 --> 00:09:00,000
Eight.

131
00:09:01,000 --> 00:09:02,000
Three plus five.

132
00:09:04,000 --> 00:09:05,000
Five plus three.

133
00:09:05,000 --> 00:09:08,000
After the second match, I got means.

134
00:09:09,000 --> 00:09:12,000
First time I just draw the these two dice.

135
00:09:13,000 --> 00:09:17,000
I didn't get the combination eight on the second time I just got the match.

136
00:09:18,000 --> 00:09:21,000
Five plus three again in the third match.

137
00:09:21,000 --> 00:09:22,000
I just got the.

138
00:09:23,000 --> 00:09:23,000
Eight.

139
00:09:23,000 --> 00:09:28,000
So this is how you can create two dice example in.

140
00:09:30,000 --> 00:09:31,000
LabVIEW.

141
00:09:31,000 --> 00:09:35,000
Or you also create your combination.

142
00:09:35,000 --> 00:09:41,000
Like in this case, I'm just using the sum of the two dices.

143
00:09:41,000 --> 00:09:50,000
Let's say we want to just check on when, in which case or after how many cases we just got the same

144
00:09:50,000 --> 00:09:52,000
value on the two dices.

145
00:09:52,000 --> 00:09:57,000
In that case, you just remove this symbol from here.

146
00:09:59,000 --> 00:09:59,000
Just.

147
00:10:01,000 --> 00:10:01,000
Place.

148
00:10:03,000 --> 00:10:13,000
Just remove this one also, because in that case I just only place our dices or means run over our dices

149
00:10:13,000 --> 00:10:15,000
and the both the combinations would be equal.

150
00:10:15,000 --> 00:10:24,000
In that case, you just combine or you just compare the values from these two dices.

151
00:10:24,000 --> 00:10:25,000
Just delete this one.

152
00:10:25,000 --> 00:10:33,000
Also, let's let's again run it in this case, remove broken wires, run it.

153
00:10:33,000 --> 00:10:35,000
We got four four after.

154
00:10:36,000 --> 00:10:38,000
Fortement means for iteration two.

155
00:10:39,000 --> 00:10:39,000
Two after two.

156
00:10:39,000 --> 00:10:40,000
Iteration.

157
00:10:40,000 --> 00:10:41,000
One one.

158
00:10:42,000 --> 00:10:42,000
Five.

159
00:10:42,000 --> 00:10:43,000
Five.

160
00:10:44,000 --> 00:10:49,000
Four, four, three, three, two, two.

161
00:10:50,000 --> 00:10:54,000
551166 after.

162
00:10:55,000 --> 00:11:02,000
One match means in the first case, when I just draw the random number, we got six six.

163
00:11:02,000 --> 00:11:08,000
So this is how you can create any logic with your two dice example.

164
00:11:08,000 --> 00:11:11,000
So I just again.

165
00:11:12,000 --> 00:11:14,000
Go to my previous one.

166
00:11:14,000 --> 00:11:17,000
Just save it to this case.

167
00:11:23,000 --> 00:11:24,000
To dice some.

168
00:11:26,000 --> 00:11:27,000
On the desktop.

169
00:11:27,000 --> 00:11:29,000
I'm just saving it.

170
00:11:30,000 --> 00:11:33,000
So this is all about today's lecture.

171
00:11:33,000 --> 00:11:34,000
Thank you.

