How to get a random value from 1~N but excluding several specific values in PHP?

Posted by Runner on Stack Overflow See other posts from Stack Overflow or by Runner
Published on 2010-04-23T12:02:34Z Indexed on 2010/04/23 12:13 UTC
Read the original article Hit count: 143

rand(1,N) but excluding array(a,b,c,..),

is there already a built-in function that I don't know or do I have to implement it myself(how?) ?

© Stack Overflow or respective owner

Related posts about php

Related posts about random-number-generator