rand_nth function

dynamic rand_nth(
  1. dynamic coll$1
)

Implementation

dc.dynamic rand_nth(dc.dynamic coll$1, ){
final dc.dynamic coll7677$1=coll$1;
late final dc.int cast$1;
if((coll7677$1 is lcoc_core.ICounted$iface)){
cast$1=(((coll7677$1 as lcoc_core.ICounted$iface).$_count$0()) as dc.int);
}else{
cast$1=(((lcoc_core.ICounted.extensions(coll7677$1, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$1, )) as dc.int);
}
final dc.int $1=lcoc_core.rand_int(cast$1, );
return (lcoc_core.nth.$_invoke$2(coll$1, $1, ));
}