问题描述
我正在尝试确定是否可以使用随机函数将我在Access中生成的两个字段相乘。结果似乎总是另一个随机数,它使用与前两个字段相同的范围。
Ex。 Expr 1:Int((6-3 + 1)* Rnd()+ 3)* 100
Expr 2:Int(((2-1 + 1)* Rnd()+ 1)) * 3
我希望能够返回使用这些数字生成的数字的结果,但如果我直接尝试:
Expr 3:[Expr 1] * [Expr 2]它只返回一个与这些数字使用相同范围的随机数。
Hi, I am trying to determine if it is possible to multiply two fields that I have generated in Access using the random function. The result always seems to be another random number which uses the same range that I have for the two previous fields.
Ex. Expr 1: Int((6-3+1)*Rnd()+3)*100
Expr 2: Int(((2-1+1)*Rnd()+1))*3
I want to be able to return the result of the numbers that were generated using these, but if I try the straight forward:
Expr 3: [Expr 1]*[Expr 2] it just returns a random number that uses the same range as those numbers.
推荐答案
这篇关于乘以随机数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!