maxudaskin Posted July 27, 2007 Share Posted July 27, 2007 Is it possible to use the rand function with a variable? Link to comment https://forums.phpfreaks.com/topic/62064-rand1variable-is-it-possible/ Share on other sites More sharing options...
Devine Posted July 27, 2007 Share Posted July 27, 2007 yes it is. I used the code: $check_rand_num="10"; $check_rand=rand('1',$check_rand_num); worked great Link to comment https://forums.phpfreaks.com/topic/62064-rand1variable-is-it-possible/#findComment-308987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.