Call a function in a shared library: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 873: | Line 873: | ||
Print "Press any key to quit" |
Print "Press any key to quit" |
||
Sleep</syntaxhighlight> |
Sleep</syntaxhighlight> |
||
=={{header|FutureBasic}}== |
|||
Use GameplayKit framework to quickly generate random integers. |
|||
<syntaxhighlight lang="futurebasic"> |
|||
include "tlbx GameplayKit.incl" |
|||
UInt64 randomInteger |
|||
NSUInteger i |
|||
for i = 1 to 20 |
|||
randomInteger = fn GKLinearCongruentialRandomSourceSeed( fn GKLinearCongruentialRandomSourceInit ) |
|||
print randomInteger |
|||
next |
|||
HandleEvents |
|||
</syntaxhighlight> |
|||
=={{header|Go}}== |
=={{header|Go}}== |
||
{{trans|C}} |
{{trans|C}} |