Demo entry 3549045

Random

   

Submitted by anonymous on Jan 20, 2016 at 19:13
Language: PHP. Code size: 233 Bytes.

<?php
function random($id){
	$text = 'abcdefghijklmnopqrstuvwxyz123457890';
	$panj = 5;
	$txtl = strlen($text)-1;
	$result = '';
	for($i=1; $i<=$panj; $i++){
	 $result .= $text[rand(0, $txtl)];
	}
	return $result.$id;
}
?>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).