Results 1 to 10 of 20

Thread: Procedural world generation - ground and traps seems to not generating.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    No, Num:=Random2(30, 3, 2); behaves like:
    Code:
    oldSeed:=randseed
    randseed:=3+2;
    Num:=Random(30);
    randseed:=oldSeed;
    If you do
    Code:
    Num1:=Random2(30, 3, 0);
    Num2:=Random2(30, 3, 0);
    Then Num1 = Num2. But if you change offset
    Code:
    Num1:=Random2(30, 3, 0);
    Num2:=Random2(30, 3, 1);
    Then Num1 and Num2 will differ. But you can always replicate those numbers again with same parameters.
    Last edited by User137; 03-06-2013 at 11:51 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •