OK everyone now inside this main activity class class actually creates an object from the secure random
class.
OK.
So first of all I need to actually refer to the name of this Eheu random class.
OK.
And then I need to actually give a name to this are secure random object to secure random numbers.
OK.
And then I need to put an assignment operator here.
New.
OK.
Secure random class OK.
So as you can see here we created an object from this secure random class and then we actually gave
a name to this object.
Secure random numbers and then we initialize this object to keep by using this new keyword.
So now let's actually create our six integer value get into number one.
OK.
Assignment operator number zero.
Int number two assignments assignment operator and then I assigned a value 0 to this variable.
And number.
Free assignment operator number 0.
Int number for assignment operator number 0 int number
5.
Assignment operator number 0 and int number 6.
Assignment operator number 0.
OK so now let's actually go inside these uncreate Mefford.
OK everyone.
Now lets actually create some other objects inside this and method.
Let's actually create a test object takes a few t XTi number one assignment operator and then I need
to actually test this object to a text view object find view by ID are that already that is the number
one.
OK again it's actually create another text view object X the number 2 assignment operator and then I
need to actually cast this object to a text view object find view by id r are that Id dot ticks the
number two.
OK takes few t s t number.
Free assignment operator.
I need to actually address this object to a text object find view by ID or that Id dot the number free
ok again.
Let's actually create another text object to use the numbers for the assignment operator.
So now let's actually cast this object to a text view object find view Id r that ID that takes the number
4 and then lets actually create another text view object.
Th the number 5 assignment operator and then essentially cast this object to a text view object find
view by id r that Id dot t t x the number 5.
OK.
And then I actually create another Tayseer object takes few ticks the number 6.
Assignment operator takes few fine few ID or that ID that thinks the number 6.
Ok so as you can see here we've got 5 6 different objects from this.
R takes a class.
So now let's actually create objects from the image view class.
So just refer to the name of this image view class and let's actually hold the common key and then present
this image view here.
If you are using a Windows machine you need to actually hold the control key and then present this image
view here.
So just click on it and as you can see here this image viewer class is actually inheriting all of the
features and behaviors that are inside this class.
OK so hopefully that makes sense.
And let's actually go back inside this main activity that you will find.
And inside this uncreate Mfat that's actually create some objects from the image view class.
So for the name of this object just type in here.
I MGD dice OK and then put an assignment operator here and then inside the.
We can just cast this object to our image view object find view by id art that Id dot are UMG dice.
OK and then let's actually create another image view object image view.
OK I m g.
Dice.
Number 1.
Assignment operator.
And then I need to cestus object or image object and find view by id r that ID that r m g is number
one and then lets actually create another image view of object image view I m g dies on Nahm number
2.
Ok assignments operator and then we cast this object to an image object.
Find view by id r that Id dot m g dice number free number 2.
OK and then we need to actually put a semicolon at the end of our statement.
So let's actually create another image view object image view our UMG dice number free assignments operator
and here I need to cast this object to our 20 mystery object find view by id r that ID that r r m g.
Number three J.
So now let's actually create another object from this image view class.
So Image view.
OK.
Our AMG dice number for assignment operator.
And then let's actually cast this object to an image view object find you by ID are that Id dot or M
G.
Number four.
OK.
I am Judo's number four.
So let's actually create another image view object.
I m g dice number 5.
Assignment operator and then the second actually has this object to an image object find view by id
r that ID that I m g dice number five.
OK.
Again let's actually create another image view object image view.
I m g dice.
Number Number 6.
Assignment operator and then let's actually cast this object to an image view object find view by ID
or that ID that I m g d is number 6.
OK.
So now let's actually create an about an object by 10 billion roll dice and then let's actually put
an assignment operator here and then we need to actually cast this object to about an object.
OK.
Find view by id the thought Id thought PTEN roll the dice.
OK.
Now let's actually make this Spartan Alina a listener to the clique's that the user make on the spot.
Roll the dice.
So let's actually refers to the name of this button here and roll the dice that set or click listener.
OK.
Now you view that on click listen.
OK.
So inside is unclear if they can actually put our own quotes.
OK everyone.
Now let's actually create a for loop inside this and click method.
So here inside the apprentice's first of all it's actually create a valuable int and the name of this
variable here is rule times.
OK.
Assignment operator zero.
And then I need to refer to the name of this variable.
Roll times are less than or equal to a number 5 million.
OK.
OK semicolon and then roll times plus plus.
OK.
And then I need to actually open and close this loop by using these curly braces.
And then inside the loop.
Actually create a variable int face number.
OK.
And then I need to actually put in an assignment operator here.
Secure secure random numbers as you can see this object is our object here.
We created this object here inside this main activity class in line 16 and here inside this method.
And inside this for loop I am referring to the name to the name of this object dot next in it and then
inside Apprentice's I can just put in Number 6 here.
OK so as you can see here here I am saying that gave me an integer number between a number 0 to number
6.
OK.
So if you want to get a value between one number of 1 to number 6 I need to actually put in number one
here plus this piece of code here.
OK.
So one plus secure random number is that next in 6.
So this piece of code is going to actually give me a random number between these two numbers.
OK.
So now let's actually create a switch statement which.