XML#1:
onClearHistoryButtonClick = (event) => {
this.refs[WEBVIEW_REF].clearhistory();
};
XML#2:
<row>
<USER_ID>2</USER_ID>
<USER_NAME>OOP</USER_NAME>
<EMAIL>example@gmail.com</EMAIL>
<PASSWORD>7515464</PASSWORD>
<USER_TYPE>3</USER_TYPE>
</row>
<row>
<USER_ID>3</USER_ID>
<USER_NAME>OOP</USER_NAME>
<EMAIL>example@gmail.com</EMAIL>
<PASSWORD>7515464</PASSWORD>
<USER_TYPE>3</USER_TYPE>
</row>
我希望应用程序以块的形式拆分两个堆栈,并为每个块添加随机数,并使用多个线程比较这些子堆栈中的相应节点
答案 0 :(得分:0)
this class generate random number
using System;
using System.Security.Cryptography;
class Program
{
static void Main()
{
using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider())
{
// Buffer storage.
byte[] data = new byte[4];
// Ten iterations.
for (int i = 0; i < 10; i++)
{
// Fill buffer.
rng.GetBytes(data);
// Convert to int 32.
int value = BitConverter.ToInt32(data, 0);
Console.WriteLine(value);
}
}
}
}