Search code examples
randomvala

Pseudorandom number In Vala


I am New to The Vala Programming Language and trying to make a program in The Vala Programming Language and i need to have random number. How Would I Go About Do that?


Solution

  • You can use build in GLib func GLib.Random.int_range (int32 begin, int32 end)

    Also you can find many examples here.