Deleting from an array

what do you use to delete a single object from an array?

I have a random number and that random number needs to be deleted from the array

Ive tried the splice but it doesnt work how I want it too or I prob not using it how Im nmeant to

could any one please help