Skip to content

Instantly share code, notes, and snippets.

@smarnach
Created March 5, 2012 00:49
Show Gist options
  • Select an option

  • Save smarnach/1975690 to your computer and use it in GitHub Desktop.

Select an option

Save smarnach/1975690 to your computer and use it in GitHub Desktop.
In [1]: import numpy
In [2]: a = numpy.random.randint(100, size=100)
In [3]: ((25 < a) & (a < 100)).sum()
Out[3]: 72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment