Companion

object Companion

Functions

Link copied to clipboard
fun random(min: Int, max: Int, type: PropertyType): Property

随机属性

fun random(min: Int, max: Int, vararg types: PropertyType): Property

随机属性,在属性列表中随机选择一个

fun random(min: Int, max: Int, typeNum: Int, vararg types: PropertyType): List<Property>

随机属性,在属性列表中随机选择 typeNum 个

Link copied to clipboard
fun randomType(value: Int, vararg types: PropertyType): Property
fun randomType(value: Int, typeNum: Int, vararg types: PropertyType): List<Property>

随机属性类型,值固定,在类型中随机选择一个