genNewId

fun genNewId(ids: List<Int>): Int