答案 0 :(得分:0)
实际上,您在分配变量值时使用了错误的变量名:
val visitors = visitors(rnd.nextInt(visitors.length - 1))
val pages = pages(rnd.nextInt(pages.length-1))
val products = products(rnd.nextInt(products.length - 1))
请使用正确的变量:
val visitors = visitors(rnd.nextInt(Visitors.length - 1))
val pages = pages(rnd.nextInt(Pages.length-1))
val products = products(rnd.nextInt(Products.length - 1))