     
     sb.push "namespace #{config.namespace}"
     sb.push "(**"
-    sb.push " * Entitas Generated Components for #{config.namespace}"
+    sb.push " * Entitas Global Functions for #{config.namespace}"
     sb.push " *"
     sb.push " * do not edit this file"
     sb.push " *)"
     sb.push "[<AutoOpen>]"
-    sb.push "module ComponentExtensions ="
+    sb.push "module GlobalFunctions ="
     sb.push ""
-    sb.push "    open Entitas"
-    sb.push "    open System"
-    sb.push "    open System.Collections.Generic"
+    sb.push "    let isNull x = match x with null -> true | _ -> false"
+    sb.push "    let notNull x = match x with null -> false | _ -> true"
+    sb.push "    let rnd = new System.Random()"
     sb.push ""
+    
+    s0.push "namespace #{config.namespace}"
+    s0.push "(**"
+    s0.push " * Entitas Generated Components for #{config.namespace}"
+    s0.push " *"
+    s0.push " * do not edit this file"
+    s0.push " *)"
+    s0.push "[<AutoOpen>]"
+    s0.push "module ComponentExtensions ="
+    s0.push ""
+    s0.push "    open Entitas"
+    s0.push "    open System"
+    s0.push "    open System.Collections.Generic"
+    s0.push ""
     
     s1.push "namespace #{config.namespace}"
     s1.push "(**"

    s3.push "    open System"
    s3.push "    open System.Collections.Generic"
    s3.push ""
    s3.push "    let isNull x = match x with null -> true | _ -> false"
    s3.push "    let notNull x = match x with null -> false | _ -> true"
    s3.push ""
    

    ###

    s1.push "    open System"
    s1.push "    open System.Collections.Generic"
    s1.push ""
    
    s2.push "namespace #{config.namespace}"
    s2.push "(**"
