Back to index

python-biopython  1.60
Public Member Functions
test_HotRand.RandomSequenceTest Class Reference

List of all members.

Public Member Functions

def test_get_random_range

Detailed Description

Test sequence of random numbers.

Definition at line 29 of file test_HotRand.py.


Member Function Documentation

Get a sequence of random numbers.

Definition at line 33 of file test_HotRand.py.

00033 
00034     def test_get_random_range(self):
00035         """Get a sequence of random numbers.
00036         """
00037         return
00038         rand_seq = []
00039         hot_random = HotRandom()
00040         for j in range( 0, 200 ):
00041             rand_num = hot_random.hot_rand( 91, 37 )
00042             rand_seq.append( rand_num )
00043         assert are_items_in_range( rand_seq, 91, 37 ) , "Got an out of range number"
00044         rand_seq = []
00045         for j in range( 0, 200 ):
00046             rand_num = hot_random.hot_rand( 19, 0 )
00047             rand_seq.append( rand_num )
00048         assert are_items_in_range( rand_seq, 19, 0 ) , "Got an out of range number"
00049         rand_seq = []
00050         for j in range( 0, 200 ):
00051             rand_num = hot_random.hot_rand( 61, 4 )
00052             rand_seq.append( rand_num )
00053         assert are_items_in_range( rand_seq, 61, 4 ) , "Got an out of range number"

Here is the call graph for this function:


The documentation for this class was generated from the following file: