public void doRandomReads ( int readCnt ) { Random rand = new Random ( ) ; int idStart = _partition . getIdStart ( ) ; int idCount = _partition . getIdCount ( ) ; for ( int i = 0 ; i < readCnt ; i ++ ) { int memberId = idStart + rand . nextInt ( idCount ) ; System . out . printf ( "MemberId=%-10d MemberData=%s%n" , memberId , new String ( _partition . get ( memberId ) ) ) ; } }
Perform a number of random reads from the underlying data partition .