Java Random randomScalingFactor()

Here you can find the source of randomScalingFactor()

Description

random Scaling Factor

License

Open Source License

Declaration

public static double randomScalingFactor() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double randomScalingFactor() {
        return (double) (Math.random() > 0.5 ? 1.0 : -1.0) * Math.round(Math.random() * 100);
    }//from  w w  w  . j  a v a  2 s  .  c o  m
}

Related

  1. randomPermutations(int[] tab, Random r)
  2. randomPermute(List l, Random rand)
  3. randomProbability(double probability)
  4. randomPseudo()
  5. randomRange(int end)
  6. randomSeed()
  7. randomShort()
  8. randomSign()
  9. randomSimpleId()