문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 중 하나의 권한을 가진 사용자에게 제한됩니다: 사용자, 관리자. 문서를 고치려면 이메일 인증 절차가 필요합니다. 사용자 환경 설정에서 이메일 주소를 입력하고 이메일 주소 인증을 해주시기 바랍니다. 문서의 원본을 보거나 복사할 수 있습니다. {{documentation subpage}} This template generates a pseudo-random integer between 0 and ''count''-1. {{tl|Random}} is a synonym of this and may also be used. ; Usage<nowiki>:</nowiki> * {{tlx|랜덤|''count''|''seed''|''prime''}} * All parameters are optional and have default values. They must be integers. * The default ''count'' is 100 (so by default, this template generates values between 0 and 99) and must be non-zero. * The default ''seed'' is <code><nowiki>{{#time:z}}</nowiki></code> (currently {{#time:z}}, i.e. the current day number in the year, at the time this page was last saved or purged from the cache) and can be set to any other integer value (used to generate distinct values on the same page). * The default ''prime'' is 67 and should be a prime number above 17 (used to generate distinct values on the same page). ; Examples generating numbers between 0 and 999<nowiki>:</nowiki> * {{tlx|랜덤}} = {{랜덤}} (default, gives values between 0 and 99) * {{tlx|랜덤|1000}} = {{랜덤|1000}} (second and third digit are the same as above) * {{tlx|랜덤|1000}} = {{랜덤|1000}} (same page load, same output) * {{tlx|랜덤|1000|<nowiki>{{#time:z}}</nowiki>|67}} = {{랜덤|1000|{{#time:z}}|67}} (same as above) * {{tlx|랜덤|1000|<nowiki>{{#time:z}}</nowiki>|61}} = {{랜덤|1000|{{#time:z}}|61}} (this and others should all be different) * {{tlx|랜덤|1000|6}} = {{랜덤|1000|6}} * {{tlx|랜덤|1000|5}} = {{랜덤|1000|5}} * {{tlx|랜덤|1000|4}} = {{랜덤|1000|4}} * {{tlx|랜덤|1000|3}} = {{랜덤|1000|3}} * {{tlx|랜덤|1000|2}} = {{랜덤|1000|2}} * {{tlx|랜덤|1000|1}} = {{랜덤|1000|1}} * {{tlx|랜덤|1000|0}} = {{랜덤|1000|0}} * {{tlx|랜덤|1000|1|17}} = {{랜덤|1000|1|17}} (varying the prime number) * {{tlx|랜덤|1000|1|19}} = {{랜덤|1000|1|19}} * {{tlx|랜덤|1000|1|23}} = {{랜덤|1000|1|23}} * {{tlx|랜덤|1000|1|29}} = {{랜덤|1000|1|29}} * {{tlx|랜덤|1000|1|31}} = {{랜덤|1000|1|31}} * {{tlx|랜덤|1000|1|37}} = {{랜덤|1000|1|37}} * {{tlx|랜덤|1000|1|41}} = {{랜덤|1000|1|41}} * {{tlx|랜덤|1000|1|43}} = {{랜덤|1000|1|43}} * {{tlx|랜덤|1000|1|47}} = {{랜덤|1000|1|47}} * {{tlx|랜덤|1000|1|51}} = {{랜덤|1000|1|51}} * {{tlx|랜덤|1000|1|53}} = {{랜덤|1000|1|53}} * {{tlx|랜덤|1000|1|59}} = {{랜덤|1000|1|59}} * {{tlx|랜덤|1000|1|61}} = {{랜덤|1000|1|61}} * {{tlx|랜덤|1000|1|67}} = {{랜덤|1000|1|67}} * {{tlx|랜덤|1000|1|71}} = {{랜덤|1000|1|71}} * {{tlx|랜덤|1000|1|73}} = {{랜덤|1000|1|73}} * {{tlx|랜덤|1000|1|79}} = {{랜덤|1000|1|79}} ; Note<nowiki>:</nowiki> * Varying ''seed'' linearly generates numbers that generate a linear sequence on the same page, with equal cyclic steps; * Varying ''prime'' (provided that they are odd prime numbers) generates pseudo-random that have independent random distribution. * Note that when ''count'' is even (such as 100 by default, or 1000 in the examples above), the generated numbers (on the same page) are all odd or all even when you are varying the ''seed'' or ''prime'', unless half of the calls use an even ''seed'' and the others used an odd ''seed''. However, later invocations will still alternate odd and even numbers on output (this problem only occurs on the same page where multiple 랜덤s are invoked). * On the same page, multiple invocations of this template with the same parameters will generate the same output value, so it is possible to create multiple links related to the same page. 이 문서에서 사용한 틀: 틀:Documentation subpage (원본 보기) 틀:Mod (원본 보기) 틀:Tl (원본 보기) 틀:Tlx (원본 보기) 틀:랜덤 (원본 보기) 틀:틀 (원본 보기) 틀:랜덤/설명문서 문서로 돌아갑니다.