yaml文件配置随机数

原文链接:http://www.cnblogs.com/duanxz/p/3733299.html

使用随机数

在yaml配置文件中使用${random.int}即可获得一个随机的int型数据。

名称

描述

${random.value}

取得随机字符串

${random.int} 取得随机int型数据
${random.long} 取得随机long型数据
${random.int(10)} 取得10以内的随机数
${random.int[10,20]} 取得10~20的随机数

猜你喜欢

转载自blog.csdn.net/zhaipengfei1231/article/details/82532030