Advertisement
Guest User

Untitled

a guest
Oct 27th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public SimpleObject() {
  2. this.number = minimum + (int)(Math.random()* maximum);
  3. this.id = this.number;
  4. this.partitionAffinityKey = this.number % SimpleObject.MODULUS_VALUE;
  5. this.cluster = (int)(Math.random() * groupMaximum);
  6. this.word = (number % 2 == 0 ? "orange":"cat");
  7. this.sentence = "apple pie tastes good";
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement