【发布时间】:2012-03-13 05:08:16
【问题描述】:
我有这个代码乘以 32 位 * 32 位。
public static void RunSnippet()
{
System.Int32 x, y;
System.Int64 z;
System.Random rand = new System.Random(DateTime.Now.Millisecond);
for (int i = 0; i < 6; i++)
{
x = rand.Next(int.MinValue, int.MaxValue);
y = rand.Next(int.MinValue, int.MaxValue);
z = (x * y);
Console.WriteLine("{0} * {1} = {2}", x, y, z);
}
但是,结果并不完全符合我的预期。
这是怎么回事?
【问题讨论】: