This very simple script:
REBOL []
view layout [
button "Rand" [alert to-string random 100]
]
gives the following results:
This is obviously not random because the same numbers repeat over and over again.
It sounds like you'd like to start with a different seed each time you run your script. Typically, the current time is used as a seed in these cases. This has nothing to do with whether you're using the GUI or not.
Try:
REBOL []
random/seed now/precise
view layout [
button "Rand" [alert to-string random 100]
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With