📜  ruby 生成随机数 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:37.184000             🧑  作者: Mango

代码示例1
rand()#that will give you a random float between 0 and 10

rand(num)#that will give you a random integer between 0 and the number num

rand(first...second)#that will give you a random
#integer between first and second