This paper presents a novel method for hiding text in images using an improved least significant bit (LSB) technique combined with random number generation for enhanced security. The approach involves dividing the secret text and randomly distributing it across image rows, while employing a simple hash function for bit hiding. Results demonstrate the method's effectiveness in safeguarding hidden information and preserving image quality.