난수생성1 [PHP] shuffle을 이용한 난수발생(쿠폰생성 등에 활용) ";} $keys = array_keys($data); unset($data); ?> 4자리 숫자+문자 네번조합의 결과물을 보여줍니다.예) BKS0-VY85-Q4LF-6C1Z 등 추가로..엑셀에서 매크로를 이용한 난수발생코드Sub macro()Dim a As New CollectionOn Error Resume NextDo test.Text = "ADAD" txt = Chr(Int(0) + 65) & Format(Int(Rnd * 10000), "0000") & Chr(Int(Rnd * 26) + 65) & Chr(Int(Rnd * 26) + 65) & Chr(Int(Rnd * 26) + 65) & Chr(Int(Rnd * 26) + 65) & Format(Int(Rnd * 10000), "0.. 2024. 9. 29. 이전 1 다음 반응형