## Not run:
# x <- build("i+j", c(10,10), type="double")
# y <- bernoulli(x, 0.5) # Sample about 1/2 the cells of x
# count(y)
#
# # Note that y is lazily evaluated *and* its value is probablistic. Thus
# # its value will change upon each evaluation. For example:
# count(y)
# count(y)
#
# # Use scidbeval to force evaluation of y once and for all:
# y <- scidbeval(y)
# count(y)
# count(y)
# ## End(Not run)
Run the code above in your browser using DataLab