3

Could you, please, let me know how I could set the random number generator seed in KDB to a more or less "random" number?

I am trying to do the following:

\S .z.i

But somehow it does not work. \S seems to expect an explicit integer, not a variable.

Thank you very much!

1 Answer 1

4

Just like with any \x command, when you need to pass a non-literal as an argument you should use system:

system"S ",string .z.i / no backslash before S!
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.