ВВ
Size: a a a
ВВ
ВВ
DT
ВВ
DT
SG
fun <T> ArrayList.randomValue(): T{
return this[(Math.random() * this.size).toInt()]
}
ArrayList
захардкодил. А как сделать для всех коллекций?SG
QH
fun <T> ArrayList.randomValue(): T{
return this[(Math.random() * this.size).toInt()]
}
ArrayList
захардкодил. А как сделать для всех коллекций?SG
AO
QH
AO
L
Report
. След раз стоит попробовать.СМ
L
СМ
NK
СМ
СМ
SG