core :: Int :: rand
Int
[0 .. self[
# Returns a random `Int` in `[0 .. self[`. fun rand: Int `{ if (nit_rand_seeded) return (long)(((double)self)*nit_rand()/(NIT_RAND_MAX+1.0)); return (long)(((double)self)*rand()/(RAND_MAX+1.0)); `}