package de.vs;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import de.vs.events.snapshot.EventMarkerMessage;

import java.util.concurrent.TimeUnit;

public class FUCoinInitMain {
  public static void main(String[] args) {
    Config config = ConfigFactory.load().getConfig("InitWalletSys");
    ActorSystem actorSystem = ActorSystem.create("FUcoin", config);
    Props props = Props.create(Wallet.class , "initNode");
    ActorRef initNode = actorSystem.actorOf(props, "initNode");

    ActorRef[] actorRefs = new ActorRef[5];
    for (int i = 0; i < actorRefs.length; i++) {
      props = Props.create(Wallet.class , "Node" + i, 10, initNode);
      actorRefs[i] = actorSystem.actorOf(props, "Node" + i);
    }

    try {
      TimeUnit.MILLISECONDS.sleep(100);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    initNode.tell(new EventMarkerMessage(), null);
  }
}

@@ -220,16 +220,41 @@
 ssage;%0A%0A
+import java.util.Random;%0A
 import j
@@ -662,16 +662,50 @@
 Ref%5B5%5D;%0A
+    Random random = new Random();%0A
     for 
@@ -799,18 +799,35 @@
 e%22 + i, 
-10
+random.nextInt(100)
 , initNo

add random amount