0

Random image at uniform rate.

I have 10 images. I want them to come from top to bottom randomly one by one. Like if one reaches to mid way then only second image should come. Can someone plz help me. Only in java.

20th Feb 2017, 4:46 AM
chanki bhakuni
chanki bhakuni - avatar
6 ответов
+ 5
Sorry, I don't understand your question. Do you want the images to show up randomly or at a specified condition?
20th Feb 2017, 5:57 AM
Tashi N
Tashi N - avatar
+ 4
You could start by using Math.random to choose the random image. Then I need to know which GUI API you use...
20th Feb 2017, 6:55 AM
Tashi N
Tashi N - avatar
+ 3
Can't help with Android API, sry.
20th Feb 2017, 4:34 PM
Tashi N
Tashi N - avatar
+ 1
Okay Tashi thanks for you efforts.
20th Feb 2017, 5:12 PM
chanki bhakuni
chanki bhakuni - avatar
0
I want images to show up randomly. Suppose I have 3 images. Image1, Image2 and Image3. First Image1 should show up at the center of the screen. Then I want it to have speed on "x-axis -= 5" when its x-axis reaches to "0" then image2 or Image3 should show up at the center and have speed x -=5. Hope I'm clear this time.
20th Feb 2017, 6:52 AM
chanki bhakuni
chanki bhakuni - avatar
0
I m using Android API
20th Feb 2017, 8:44 AM
chanki bhakuni
chanki bhakuni - avatar