小编naj*_*laa的帖子

using System.DateTime.Now.Ticks for seed value

I have started a wireless sensor network simulation code but I don't understand the meaning of the seed and what is the return value of System.DateTime.Now.Ticks in the method below.

public void Reset(bool bNewSeed) {
    // this function resets the network so that a new simulation can be run - can either be reset with a new seed, or with the previous seed (for replay.)
    this.iProcessTime = 0;
    this.iPacketsDelivered = 0;
    foreach (WirelessSensor sensor in aSensors) {
        sensor.iResidualEnergy = sensor.iInitialEnergy; …
Run Code Online (Sandbox Code Playgroud)

c# seed

1
推荐指数
1
解决办法
2365
查看次数

标签 统计

c# ×1

seed ×1