Examples of randomize()


Examples of org.jwildfire.create.tina.random.AbstractRandomGenerator.randomize()

    int centre = buffer_size / 2;
    double pi2 = 2.0 * Math.PI;
    int size2 = buffer_size - 2;
    short q[][] = new short[buffer_size][buffer_size];
    randGen.randomize(seed);
    q[centre][centre] = 1;
    double r1 = 3.0;
    double r2 = 3.0 * r1;
    for (int i = 0; i < _max_iter; i++) {
      double phi = pi2 * randGen.random();
 
View Full Code Here

Examples of org.jwildfire.create.tina.random.MarsagliaRandomGenerator.randomize()

    int centre = buffer_size / 2;
    double pi2 = 2.0 * Math.PI;
    int size2 = buffer_size - 2;
    short q[][] = new short[buffer_size][buffer_size];
    randGen.randomize(seed);
    q[centre][centre] = 1;
    double r1 = 3.0;
    double r2 = 3.0 * r1;
    for (int i = 0; i < _max_iter; i++) {
      double phi = pi2 * randGen.random();
 
View Full Code Here

Examples of org.rsbot.script.wrappers.RSTile.randomize()

        final RSTile portalLocation = portal.getLocation();
        if (portal.isOnScreen()) {
          portal.interact("Enter");
          return random(3000, 4000);
        } else {
          walking.walkTileMM(portalLocation.randomize(2, 2));
          return random(1500, 2000);
        }
      }
    }
    if (talkComponent.containsText("Ahem, ")) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.nether.object.GlowstonePatchObject.randomize()

    glowstone.setRandom(random);
    for (int amount = getAmount(random); amount > 0; amount--) {
      final int x = chunk.getBlockX(random);
      final int y = random.nextInt(NetherGenerator.HEIGHT);
      final int z = chunk.getBlockZ(random);
      glowstone.randomize();
      if (glowstone.canPlaceObject(world, x, y, z)) {
        glowstone.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.BlockPatchObject.randomize()

    sand.setRandom(random);
    for (byte count = 0; count < firstSandAmount; count++) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = getHighestWorkableBlock(world, x, z);
      sand.randomize();
      if (y != -1 && sand.canPlaceObject(world, x, y, z)) {
        sand.placeObject(world, x, y, z);
      }
    }
    final BlockPatchObject clay = new BlockPatchObject(VanillaMaterials.CLAY_BLOCK);
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.CactusStackObject.randomize()

    final int amount = getAmount(random);
    for (byte count = 0; count < amount; count++) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = getHighestWorkableBlock(world, x, z);
      cactus.randomize();
      if (y != -1 && cactus.canPlaceObject(world, x, y, z)) {
        cactus.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.DungeonObject.randomize()

    final World world = chunk.getWorld();
    for (byte count = 0; count < attempts; count++) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = random.nextInt(128);
      dungeon.randomize();
      if (dungeon.canPlaceObject(world, x, y, z)) {
        dungeon.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.HugeMushroomObject.randomize()

    final int amount = getAmount(random);
    for (byte count = 0; count < amount; count++) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = getHighestWorkableBlock(world, x, z);
      mushroom.randomize();
      if (y != -1 && mushroom.canPlaceObject(world, x, y, z)) {
        mushroom.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.SugarCaneStackObject.randomize()

      final int y = getHighestWorkableBlock(world, x, z);
      if (y == -1 || !canes.canPlaceObject(world, x, y, z)) {
        continue;
      }
      successfulClusterCount++;
      canes.randomize();
      canes.placeObject(world, x, y, z);
      for (byte placed = 1; placed < maxClusterSize; placed++) {
        final int xx = x - 3 + random.nextInt(7);
        final int zz = z - 3 + random.nextInt(7);
        canes.randomize();
View Full Code Here

Examples of org.spout.vanilla.world.generator.normal.object.tree.TreeObject.randomize()

    final Biome decorating = chunk.getBiome(7, 7, 7);
    final byte amount = factory.amount(random);
    for (byte count = 0; count < amount; count++) {
      final TreeObject tree = factory.make(random);
      tree.setRandom(random);
      tree.randomize();
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      if (decorating != world.getBiome(x, 64, z)) {
        continue;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.