stuartornum wrote: > Also what does rand(3,3) actually produce? is it a list, dict, im not really > sure.
Since you are using Python, you can just ask it: >>> import numpy as np >>> help(np.random.rand) Help on built-in function rand: rand(...) Return an array of the given dimensions which is initialized to random numbers from a uniform distribution in the range [0,1). rand(d0, d1, ..., dn) -> random values Note: This is a convenience function. If you want an interface that takes a tuple as the first argument use numpy.random.random_sample(shape_tuple). >>> np.random.rand(2,3) array([[ 0.309125 , 0.68037706, 0.59229101], [ 0.20640643, 0.33197814, 0.20436687]]) hth, Alan Isaac ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users