Skip to content
Tcl Source Code Artifact [570b634e5a]
Login

Artifact [570b634e5a]

Artifact 570b634e5a4c79744b0373e20872d71384f3a090:

Ticket change [570b634e5a] - Ticket [1480509fffffffff|1480509fff] <i>Allow srand() to handle big wides</i> status still Open with 4 other changes by afredd on 2006-05-03 21:44:08.
D 2006-05-03T21:44:08
J icomment Logged\sIn:\sYES\s\nuser_id=1386588\n\nI'm\shappy\swith\sDonal's\sanswer\s-\smy\scall\sto\ssrand()\swas\nunnecesary.\sI'm\shappy\sto\sclose\sthis\sreport\snow.\n\n>Currently\ssrand()\stakes\san\s"int"\n>argument,\snot\sa\s"long"\sargument.\n>That\sis,\sonly\svalues\sthat\spass\n>[string\sis\sinteger\s-strict]\sare\n>accepted.\n\n...i\swas\sskeptical\swhen\si\sread\sthis\s(!)\sbut,\syou're\sright:\n\n%\sinfo\spa\n8.5a3\n%\sstring\sis\sinteger\s-strict\s\s4294967296\n0\n%\sstring\sis\sinteger\s-strict\s\s4294967295\n1\n%\sexpr\ssrand(4294967295)\n0.7574217011022483\n%\sexpr\ssrand(4294967296)\ncan't\suse\sfloating-point\svalue\sas\sargument\sto\ssrand\n\n\nalthough,\sthis\sisn't\sthe\sbehaviour\sof\s8.4:\n\n%\sinfo\spa\n8.4.8\n%\sstring\sis\sinteger\s-strict\s\s4294967295\n1\n%\sstring\sis\sinteger\s-strict\s\s4294967296\n0\n%\sexpr\ssrand(4294967295)\n0.757421701102\n%\sexpr\ssrand(4294967296)\n0.242578298898\n\n\n\n\n
J login afredd
J mimetype text/plain
J username afredd
K 1480509fffffffffffffffffffffffffffffffff
U afredd
Z e50243c4d0e6c6858a6b8fbc970b6723