comparison base/src/java/util/Random.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 1bf55a6eb092
children
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
23 } 23 }
24 public bool nextBoolean(){ 24 public bool nextBoolean(){
25 version(Tango){ 25 version(Tango){
26 return kiss.toInt(2) is 0; 26 return kiss.toInt(2) is 0;
27 } else { // Phobos 27 } else { // Phobos
28 return (gen.next() & 1 ) is 0; 28 gen.popFront();
29 return (gen.front() & 1 ) is 0;
29 } 30 }
30 } 31 }
31 } 32 }
32 33
33 34