回答編集履歴

2

fix random generation

2019/09/11 05:20

投稿

AnonymouZ
AnonymouZ

スコア64

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  delay(500L)
12
12
 
13
- textView.text = "${Random.nextInt(100) + 1}"
13
+ textView.text = "${(1..100).random()}"
14
14
 
15
15
  }
16
16
 

1

fix

2019/09/11 05:20

投稿

AnonymouZ
AnonymouZ

スコア64

test CHANGED
@@ -6,15 +6,11 @@
6
6
 
7
7
  launch {
8
8
 
9
- var count = 0
10
-
11
9
  while(true) {
12
10
 
13
11
  delay(500L)
14
12
 
15
- textView.text = "$count"
13
+ textView.text = "${Random.nextInt(100) + 1}"
16
-
17
- count++
18
14
 
19
15
  }
20
16